-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Vite dev doesn't find WebWorker #17400
Labels
duplicate
This issue or pull request already exists
Comments
Following getting the same error for myself as well Here is how i create the worker in my library (using comlink and the
and here is my tsconfig for publishing with
and here is my vite config in my app for consuming
I tried various options like
and using vite-comlink plugin but no success |
Duplicate of #8427 |
Same issue, looking forward to you fixing it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
We try to use iTowns package (which contains WebWorker) with Vite and Vite dev doesn't seem to resolve WebWorker correctly.
He try to search WebWorker at path
http://localhost:5173/itowns-starter/node_modules/.vite/Worker/Potree2Worker.js?worker_file&type=module
WebWorker are declared here :
https://github.com/bloc-in-bloc/itowns/blob/f23332137cf6f662e2790054eb227289ff324086/src/Parser/Potree2BinParser.js#L9
And you can find the complete project Vite + iTowns : https://github.com/bloc-in-bloc/itowns-starter/tree/debug-potree
Reproduction
https://github.com/bloc-in-bloc/itowns-starter/tree/debug-potree
Steps to reproduce
npm install
npm run dev
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: