question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UIROUTER_MODULE_TOKEN is now a hidden export, but is required in external projects

See original GitHub issue

Prior 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
euangoddardcommented, Jul 6, 2020

@christopherthielen many thanks. Do you have a time-frame for a release to that incorporates this change?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found