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
I would expect this is because the websocket is dropped at the same time the server tries to send an update
To trigger the crash, follow the reproduction link, then once the server is running create a new terminal tab and run touch tsconfig.json && touch vite.config.ts
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
If both vite.config.ts and tsconfig.json are saved at the same time, the dev server crashes with
TypeError: Cannot read properties of null (reading 'ws')
The line that it errors on is here:
vite/packages/vite/src/node/plugins/esbuild.ts
Line 361 in b85802a
I would expect this is because the websocket is dropped at the same time the server tries to send an update
To trigger the crash, follow the reproduction link, then once the server is running create a new terminal tab and run
touch tsconfig.json && touch vite.config.ts
Reproduction
https://stackblitz.com/edit/solid-vite-queyzr?file=vite.config.ts,tsconfig.json
System Info
System: OS: StackBlitz WebContainers npmPackages: vite: ^2.9.12 => 2.9.12
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: