Description
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
When enabling SSR in an Angular 19.1.0 project, the application throws an error related to Vite not finding the entry point module.
When disable HMR, no throws.
Steps to reproduce the issue:
ng new --ssr
ng serve
- Observe the error in the terminal.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Error: [vite] cannot find entry point module 'file:///C:/@ng/component?c=src%2Fapp%2Fapp.component.ts%40AppComponent&t=1737003792335'.
at fetchModule (file:///C:/Project/test/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51477:13)
at async handleInvoke (file:///C:/Project/test/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:44166:22)
at async EventEmitter.listenerForInvokeHandler (file:///C:/Project/test/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:44239:19) {
runnerError: Error: RunnerError
at reviveInvokeError (file:///C:/Project/test/node_modules/vite/dist/node/module-runner.js:541:18)
at Object.invoke (file:///C:/Project/test/node_modules/vite/dist/node/module-runner.js:624:15)
}
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 19.1.0
Node: 20.18.1
Package Manager: npm 10.8.2
OS: win32 x64
Angular: 19.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, ssr
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.0
@angular-devkit/build-angular 19.1.0
@angular-devkit/core 19.1.0
@angular-devkit/schematics 19.1.0
@schematics/angular 19.1.0
rxjs 7.8.1
typescript 5.7.3
zone.js 0.15.0
Anything else?
No response