How to import a web worker from an NPM package? #7991
dominictobias
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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