Repository navigation
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
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
Metadata
Metadata
Assignees
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Activity
alan-agius4 commentedon Jan 22, 2025
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via
ng new repro-appand adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.This might be related to your directory structure so its really important to get an accurate repro to diagnose this.
us77ipis commentedon Jan 22, 2025
I'll continue trying to create a minimal example, though I have not achieved reproduction of the issue starting with a fresh project so far.
Here the
ng versionoutput from before the update that caused the issue, in case that helps:rmlira commentedon Jan 23, 2025
same issue here, for a new project I just have included the app-shell:
ng generate app-shelland then created a lazy loaded route:
every time I edit the homeComponent it throws me the same error:
configuration:
new project commands;
us77ipis commentedon Jan 29, 2025
Still having this issue with 19.1.5, so #29462 did not fix the issue I believe.
fix(@angular/build): prevent server manifest generation when no serve…
fix(@angular/build): prevent server manifest generation when no serve…
fix(@angular/build): prevent server manifest generation when no serve…
fix(@angular/build): prevent server manifest generation when no serve…
angular-automatic-lock-bot commentedon Mar 2, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.