We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b393451 commit d12d469Copy full SHA for d12d469
packages/vite/src/node/plugins/esbuild.ts
@@ -437,11 +437,14 @@ function reloadOnTsconfigChange(changedFile: string) {
437
438
// reset tsconfck so that recompile works with up2date configs
439
initTSConfck(server.config).finally(() => {
440
- // force full reload
441
- server.ws.send({
442
- type: 'full-reload',
443
- path: '*'
444
- })
+ // server may not be available if vite config is updated at the same time
+ if (server) {
+ // force full reload
+ server.ws.send({
+ type: 'full-reload',
445
+ path: '*'
446
+ })
447
+ }
448
})
449
}
450
0 commit comments