Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing map for DataWorker and SortWorker - Sveltekit #70

Open
TravisThomp opened this issue Feb 28, 2024 · 1 comment
Open

Missing map for DataWorker and SortWorker - Sveltekit #70

TravisThomp opened this issue Feb 28, 2024 · 1 comment

Comments

@TravisThomp
Copy link
Contributor

Occasionally when developing with sveltekit these two 404 errors will occur.

SvelteKitError: Not found: /DataWorker.js.map
    at resolve (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:522:13)
    at resolve (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:322:5)
    at #options.hooks.handle (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\index.js:71:56)
    at Module.respond (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:319:40)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 404,
  text: 'Not Found'
}
SvelteKitError: Not found: /SortWorker.js.map
    at resolve (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:522:13)
    at resolve (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:322:5)
    at #options.hooks.handle (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\index.js:71:56)
    at Module.respond (E:\big_projects\gsplat-editor\node_modules\@sveltejs\kit\src\runtime\server\respond.js:319:40)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 404,
  text: 'Not Found'
}

I believe this is caused by a misconfiguration of rollup-plugin-web-worker-loader in the rollupconfig.js, I think the sourcemap parameter should be set to true on this line
I haven't been able to reproduce this well enough to ensure that this fixes the issue but I'll report back when I can

@fcastrovilli
Copy link

same here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants