Skip to content

Handling Typescript and Vite static assets, to avoid errors in VSCode? #14950

Closed Answered by ajmas
ajmas asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like I didn't dig far enough. According to the documentation, I need to add the following to my tsconfig.json:

{
  "compilerOptions": {
    "types": ["vite/client"]
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dargmuesli
Comment options

Answer selected by ajmas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants