huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 77 forks source link

Missing map for DataWorker and SortWorker - Sveltekit #70

Open TravisThomp opened 4 months ago

TravisThomp commented 4 months ago

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 commented 2 months ago

same here!