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
Build fails because of missing type definitions #1076
Comments
Not sure about "@types/ws", but "@types/node" is required You can also try passing "--skipLibCheck" to tsc command |
I know that |
I'm also running into this when adding Vitest to a project. Had to add |
Can confirm the bug: https://github.com/sheremet-va/vitest-types-bug Note, we also require |
Describe the bug
Whenever I add a test to the project and try to run
npm run build
, I get type definition errors. Errors are related to @types/node and @types/ws. I know I could just install these within my own devDependencies, but I think this should not be the case?Reproduction
This is a fresh install of Vite+Vitest. The only change by me here is adding a test. Try running
npm run build
here:https://stackblitz.com/edit/vitejs-vite-kmvhms
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: