How to import a web worker from an NPM package? #7991
dominictobias
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, when I do:
I get
[plugin:vite:import-analysis] Failed to resolve import "@watchtower/api?worker" from "......tsx". Does the file exist?
Am I doing something wrong or is it not supported? I have this module in my node_modules (built with Vite actually and with the correct and recommended dist/ paths in package.json):
Beta Was this translation helpful? Give feedback.
All reactions