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
{{ message }}
Repository navigation
HMR Vite cannot find /@ng/component entry point module in v19.1.0 SSR #29364
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)
changed the title [-]Vite cannot find entry point module in v19.1.0 SSR[/-][+][HMR] Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/+]on Jan 16, 2025
changed the title [-][HMR] Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/-][+]HMR Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/+]on Jan 16, 2025
Activity
[-]Vite cannot find entry point module in v19.1.0 SSR[/-][+][HMR] Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/+][-][HMR] Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/-][+]HMR Vite cannot find `/@ng/component` entry point module in v19.1.0 SSR[/+]fix(@angular/build): resolve HMR-prefixed files in SSR with Vite
fix(@angular/build): resolve HMR-prefixed files in SSR with Vite
fix(@angular/build): resolve HMR-prefixed files in SSR with Vite
alan-agius4 commentedon Jan 16, 2025
The fix has been released and is available in version 19.1.1.
angular-automatic-lock-bot commentedon Feb 16, 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.