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
On some projects dev server will crash if you modify tsconfig.json.
This doesn't seem to happen on the minimal example in stackblitz.
To reproduce:
open stackblitz example
try to modify tsconfig.json in any way.
observe crash
~/projects/xorinjgpp.github
❯ npm install && npm run dev
12:56:29 [astro] update /tsconfig.json
12:56:29 [astro] Configuration updated. Restarting...
Error: The server is being restarted or closed. Request is outdated
at throwClosedServerError (file:///home/projects/xorinjgpp.github/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:43808:17)
at Object.resolveId (file:///home/projects/xorinjgpp.github/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:44206:21)
at ModuleGraph.eval [as resolveId] (file:///home/projects/xorinjgpp.github/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:64976:65)
at ModuleGraph._resolveUrl (file:///home/projects/xorinjgpp.github/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:64936:57)
at ModuleGraph.getModuleByUrl (file:///home/projects/xorinjgpp.github/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:64714:34)
at FSWatcher.eval (file:///home/projects/xorinjgpp.github/node_modules/astro/dist/content/vite-plugin-content-imports.js:129:58) {
code: 'ERR_CLOSED_SERVER'
}
What version of
astro
are you using?2.9.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm, pnpm, bun (yes, all of them)
What operating system are you using?
Linux
What browser are you using?
Chromium
Describe the Bug
On some projects dev server will crash if you modify
tsconfig.json
.This doesn't seem to happen on the minimal example in stackblitz.
To reproduce:
What's the expected result?
Server still running.
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=tsconfig.json&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: