diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 5828a90be3043d..32a3371cef527b 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -690,6 +690,7 @@ export async function _createServer( server._ssrCompatModuleRunner?.close(), ]) server.resolvedUrls = null + server._ssrCompatModuleRunner = undefined }, printUrls() { if (server.resolvedUrls) {