You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v2.9.0, #6093 has reappeared. tsc throws Cannot find module 'ws' errors when skipLibCheck is disabled in tsconfig.json.
This problem has been resolved once in v2.7.2.
Additionally, if @types/node is not installed, a large number of type errors related to built-in modules occur. This has not been fixed in v2.7.2.
> npx tsc
node_modules/vite/dist/node/index.d.ts:51:47 - error TS2307: Cannot find module 'ws' or its corresponding type declarations.
51 import type { WebSocket as WebSocket_2 } from 'ws';~~~~
node_modules/vite/dist/node/index.d.ts:52:54 - error TS2307: Cannot find module 'ws' or its corresponding type declarations.
52 import { WebSocketServer as WebSocketServer_2 } from 'ws';~~~~
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
Since v2.9.0, #6093 has reappeared.
tsc
throwsCannot find module 'ws'
errors whenskipLibCheck
is disabled intsconfig.json
.This problem has been resolved once in v2.7.2.
Additionally, if
@types/node
is not installed, a large number of type errors related to built-in modules occur. This has not been fixed in v2.7.2.Is this intentional?
Reproduction
https://stackblitz.com/edit/vitejs-vite-dvkc8j?file=package.json&terminal=dev
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: