akita: akita-ng-router-store@5.1.0 breaks prod build
[x] Regression (a behavior that used to work and stopped working in a new release)
Hi! I updated akita-ng-router-store from 5.0.0 to 5.1.0 and my production(only) build broke
Here is the error:
ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[AkitaNgRouterStoreModule -> RouterService]:
StaticInjectorError(Platform: core)[AkitaNgRouterStoreModule -> RouterService]:
NullInjectorError: No provider for RouterService!
NullInjectorError: StaticInjectorError(AppModule)[AkitaNgRouterStoreModule -> RouterService]:
Here are my deps:
"@angular-devkit/build-angular": "~0.803.25",
"@angular/animations": "^8.2.14",
"@angular/cdk": "^7.3.7",
"@angular/cli": "^8.3.25",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/compiler-cli": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/forms": "^8.2.14",
"@angular/material": "^7.3.7",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/router": "^8.2.14",
"@datorama/akita": "^4.17.1"
Fixing version to akita-ng-router-store@5.0.0 solved the issue
What should I change to be able to use 5.1.0?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 15 (2 by maintainers)
Commits related to this issue
- build(compiler): downgrade ngcc to v8 fix #446 — committed to xbaun/akita by xbaun 4 years ago
Thanks @xbaun, I was about to say the same 😃
We should take the first approach. It’s not about Akita. Akita doesn’t depend on Angular. We should do it for the Angular plugins.