We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 193d55c commit c56b954Copy full SHA for c56b954
packages/vite/src/node/plugins/esbuild.ts
@@ -485,6 +485,8 @@ async function loadTsconfigJsonForFile(
485
}
486
487
function reloadOnTsconfigChange(changedFile: string) {
488
+ // server could be closed externally after a file change is detected
489
+ if (!server) return
490
// any tsconfig.json that's added in the workspace could be closer to a code file than a previously cached one
491
// any json file in the tsconfig cache could have been used to compile ts
492
if (
0 commit comments