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

core: StaticInjectorError due to @uirouter/core update #3603

Closed
SuperITMan opened this issue Mar 21, 2023 · 1 comment
Closed

core: StaticInjectorError due to @uirouter/core update #3603

SuperITMan opened this issue Mar 21, 2023 · 1 comment
Labels
10.x Stark version comp: stark-ui dependencies Pull requests that update a dependency file type: bug

Comments

@SuperITMan
Copy link
Member

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem

Current behavior

When building the showcase in "prod" mode then running server:prod, we get the following error when we access the application.
It seems there is an issue with the preloading states (starkPreloadingStateName).

Transition Rejection($id: 1 type: 6, message: The transition errored, detail: Error: StaticInjectorError[e]: 
  StaticInjectorError(Platform: core)[e]: 
    NullInjectorError: No provider for e!)"

This error appeared after a fix made for the issue: ui-router/core#822.
The fix has been made to improve support for Angular > v12.
We got the new version because of the dependencies of @uirouter/angular v5.0.0. It has the following dependencies:

  "dependencies": {
    "@uirouter/core": "^6.0.1",
    "@uirouter/rx": "^0.6.0"
  },

Fixing the version to "@uirouter/core":"9.0.9" in stark-core, besides @uirouter/angular seems to fix this issue.

Expected behavior

Fix production build based on Stark 10.x.

What is the motivation / use case for changing the behavior?

Environment


Angular version: 7.x
Stark version: 10.x

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@SuperITMan SuperITMan added type: bug comp: stark-ui dependencies Pull requests that update a dependency file 10.x Stark version labels Mar 21, 2023
SuperITMan added a commit to SuperITMan/stark that referenced this issue Mar 21, 2023
SuperITMan added a commit that referenced this issue Mar 22, 2023
SuperITMan added a commit that referenced this issue Mar 22, 2023
SuperITMan added a commit that referenced this issue Mar 22, 2023
@SuperITMan
Copy link
Member Author

Closed by #3604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.x Stark version comp: stark-ui dependencies Pull requests that update a dependency file type: bug
Projects
None yet
Development

No branches or pull requests

1 participant