-
I have a Typescript based, Vite based frontend project, that makes used of Web Workers and has an import of the style: import MyWorker from './workers/MyWorker?worker'; The problem, in VSCode, the line gets highlighted with the error:
How should I be configuring my project so that this resolves in a way to make VSCode happy? |
Beta Was this translation helpful? Give feedback.
Answered by
ajmas
Nov 11, 2023
Replies: 1 comment 1 reply
-
Looks like I didn't dig far enough. According to the documentation, I need to add the following to my {
"compilerOptions": {
"types": ["vite/client"]
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ajmas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like I didn't dig far enough. According to the documentation, I need to add the following to my
tsconfig.json
: