Skip to content

HMR Vite cannot find /@ng/component entry point module in v19.1.0 SSR #29364

Closed

Description

@Ruisi-Lu

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:

  1. ng new --ssr
  2. ng serve
  3. 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

Activity

  1. 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
  2. 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
  3. added a commit that references this issue on Jan 16, 2025
    b98af11
  4. added a commit that references this issue on Jan 16, 2025
    2985067
  5. added a commit that references this issue on Jan 16, 2025
    48385bd
  6. alan-agius4 commented on Jan 16, 2025

    @alan-agius4
    Collaborator

    The fix has been released and is available in version 19.1.1.

  7. angular-automatic-lock-bot commented on Feb 16, 2025

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions