Skip to content
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

Cannot find module 'ws' or its corresponding type declarations. #7645

Closed
7 tasks done
wade3po opened this issue Apr 8, 2022 · 1 comment
Closed
7 tasks done

Cannot find module 'ws' or its corresponding type declarations. #7645

wade3po opened this issue Apr 8, 2022 · 1 comment

Comments

@wade3po
Copy link

wade3po commented Apr 8, 2022

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

no

Used Package Manager

npm

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Apr 8, 2022

Fixed in #7605

@bluwy bluwy closed this as completed Apr 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants