UIROUTER_MODULE_TOKEN is now a hidden export, but is required in external projects
See original GitHub issuePrior to version 6.0.2 UIROUTER_MODULE_TOKEN
was an injection token that one could import outside the UI router project. Since this release, I get the follow error when trying to import:
import { UIROUTER_MODULE_TOKEN } from '@uirouter/angular/injectionTokens';
Our application relies on this to do:
{ provide: UIROUTER_MODULE_TOKEN, useFactory: STATES_MODULE_FACTORY, deps: [TRANSFORMED_STATES], multi: true },
Could you please allow this token to be imported by external applications again?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Angular 6 Error "NullInjectorError: No provider for Router!"
First import RouteModule in app.module.ts import { RouterModule, Routes } from '@angular/router';. And use it like below: (You only import ...
Read more >How to turn an Angular app into standalone - Part II
Get rid of the ProjectRoutingModule and its dependencies; Bootstrap a standalone root component; Run with injection tokens and providers. The ...
Read more >The Complete Guide to Angular User Authentication with Auth0
You can now test that these two paths, /profile and /external-api , require users to authenticate before they can access them. Log out...
Read more >NgModule FAQ - Angular
Do not import BrowserModule in any other module. Feature modules and lazy-loaded modules should import CommonModule instead. They need the common directives ...
Read more >Tutorial: Create an Angular app that uses the Microsoft identity ...
Visual Studio Code or other editor for modifying project files. ... Token acquisition and renewal are handled by MSAL.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/ui-router/angular/releases/tag/6.0.3
@christopherthielen many thanks. Do you have a time-frame for a release to that incorporates this change?