Support: Web Worker import with query suffixes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- deno, typescript, vite
- Domain
- backend
Research direction
Start by tracing how Fresh handles SSR imports and how it resolves module specifiers containing query suffixes. Reproduce the failure with a Web Worker import such as ./worker?worker&url, then check the SSR import path against Vite's documented query suffix behavior. Done means the import resolves without the reported not-found error and can be used with audioWorklet.addModule.
Written by the indexing model from the issue text.
Description
Vite supports importing Web Workers with query suffixes, e.g. import MyWorker from './worker?worker&url';, which can then be used to for example add an audio worklet audioContext.audioWorklet.addModule(MyWorker);
https://vite.dev/guide/features.html#import-with-query-suffixes
Currently an error is thrown:
[vite] (ssr) Error when evaluating SSR module fresh:server_entry: Import 'file:///User/.../MyWorker.ts%3Fworker&url' failed, not found.
at wbindgen_error_new (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:1073:15)
at wasm://wasm/01438d62:wasm-function 11086] :0x404151
at wasm://wasm/01438d62:wasm-function 4736]:0x39979c
at wasm://wasm/01438d62:wasm-function[118] :0x3e24d
at wasm://wasm/01438d62:wasm-function[1983]:0x3011cb
at wasm://wasm/ 01438d62:wasm-function 10418:0x3fb858
at wasm://wasm/ 01438d62:wasm-function 11766:0x4081aa
at __wbg_adapter_54 (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:252:8)
at real (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:156:14)
at ext: core/01_core.js:295:9
- Dominant language
- TypeScript
- Stars
- 13.8k
- Forks
- 757
- Avg merge
- 3m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from freshframework/fresh
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
freshframework/fresh#3920 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
freshframework/fresh#3833 ·
-
feat
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
freshframework/fresh#3803 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
freshframework/fresh#3918 · 1 comment · 4 reactions ·
-
Tab title doesn't update to <Head> <title> when navigating to a page with another <title>Possibly taken @1AbdullahButt claimed this 7 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 57/100
freshframework/fresh#3916 ·
All issues in freshframework/fresh
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tintinweb/pi-subagents#459 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
danielmiessler/LifeOS#2830 ·
Maintainers usually reply within 6 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: client enhancement priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
opensro-dev/opensro#3681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day