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
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)
alan-agius4
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
Jan 16, 2025
alan-agius4
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
Jan 16, 2025
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jan 16, 2025
Improved handling of Angular prefixed files when using Vite dev-server with SSR. Updated logic ensures proper resolution of `file://` files paths with query strings.
Closesangular#29364
Improved handling of Angular prefixed files when using Vite dev-server with SSR. Updated logic ensures proper resolution of `file://` files paths with query strings.
Closes#29364
(cherry picked from commit 48385bd)
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
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: