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
use npm init @vitejs/app create project, vite version is ^2.8.0, when npm run build,
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';
~~~~
Found 2 errors in the same file, starting at: node_modules/vite/dist/node/index.d.ts:51
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
use npm init @vitejs/app create project, vite version is ^2.8.0, when npm run build,
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';
~~~~
Found 2 errors in the same file, starting at: node_modules/vite/dist/node/index.d.ts:51
i need install ws?
Reproduction
no
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: