huggingface / huggingface/gsplat.js

Missing map for DataWorker and SortWorker - Sveltekit

Open
#70 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.7k
Forks
109
Avg merge
16m
Merged PRs (30d)
1

Description

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](https://github.com/huggingface/gsplat.js/blob/c7d1f8a3d97c570318e426c961c57cec3dfc61c5/rollup.config.js#L22C1-L22C53
) 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in rollup.config.js at the rollup-plugin-web-worker-loader configuration referenced by the issue, and reproduce the SvelteKit development requests for DataWorker.js.map and SortWorker.js.map if possible. Verify whether the configuration change prevents both 404 errors and confirm the result with a development run.

Written by the indexing model from the issue text.

Assessment

Tech stack
rollup, typescript
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.