Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
After updating from 19.0.x to 19.1.3 even with HMR disabled ng serve
crashes any time I update any file.
Looks similar to #29424, but happens also with HMR disabled.
Minimal Reproduction
Run ng serve --no-hmr
Exception or Error
[vite] (ssr) Error when evaluating SSR module /main.server.mjs:
|- Error: [vite] cannot find entry point module '/main.server.mjs'.
at fetchModule (file:///app/frontend/node_modules/@angular/build/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51477:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleInvoke (file:///app/frontend/node_modules/@angular/build/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:44166:22)
at async EventEmitter.listenerForInvokeHandler (file:///app/frontend/node_modules/@angular/build/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:44239:19)
An unhandled exception occurred: [vite] cannot find entry point module '/main.server.mjs'.
Your Environment
Angular CLI: 19.1.3
Node: 22.12.0
Package Manager: npm 10.9.0
OS: linux x64
Angular: 19.1.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.3
@angular-devkit/build-angular 19.1.3
@angular-devkit/core 19.1.3
@angular-devkit/schematics 19.1.3
@angular/cdk 19.1.0
@angular/cli 19.1.3
@angular/material 19.1.0
@angular/ssr 19.1.3
@schematics/angular 19.1.3
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Anything else relevant?
No response