Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After ng upgrade 18->19: NullInjectorError - InjectionToken @ngrx/store Root Store Provider #4642

Open
2 tasks
sebsoftpak opened this issue Dec 24, 2024 · 1 comment

Comments

@sebsoftpak
Copy link

Which @ngrx/* package(s) are the source of the bug?

store

Minimal reproduction of the bug/regression with instructions

Used "ng update" to update Angular 18 to 19, and NGRX from 18 to 19.
Still working in dev mode, but breaks in prod mode.

(Also breaks when changing "optimization": false to "optimazation": true in angular.sjon.)

Our logging shows us the following error:
{"name":"NullInjectorError","ngTempTokenPath":["InjectionToken @ngrx/store Root Store Provider","_2","c8","c8"]}

Unfortunately, after fighting with this a couple of days, I haven't been able to find the cause.

Expected behavior

ng update 18 -> 19 should not break the app.

Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)

Chrome, MacOS 15.1.1, Node 22.12.0, NPM 11.0.0

├── @angular-devkit/[email protected]
├── @angular-eslint/[email protected]
├── @angular-eslint/[email protected]
├── @angular-eslint/[email protected]
├── @angular-eslint/[email protected]
├── @angular-eslint/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @capacitor-community/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capacitor/[email protected]
├── @capawesome/[email protected]
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @ionic/[email protected]
├── @ionic/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngrx/[email protected]
├── @ngx-translate/[email protected]
├── @sentry/[email protected]
├── @softpak/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @typescript-eslint/[email protected]
├── @typescript-eslint/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@sebsoftpak sebsoftpak changed the title Angular 19: NullInjectorError - InjectionToken @ngrx/store Root Store Provider After ng upgrade 18->19: NullInjectorError - InjectionToken @ngrx/store Root Store Provider Dec 24, 2024
@timdeschryver
Copy link
Member

Please provide a minimal reproduction, without it we won't be able to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants