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.

Problem with the UiRouterModule when building with --aot --watch

See original GitHub issue

Hi guys,

We have a problem with the UiRouterModule when building with --aot --watch after saving changes to a component the cli will try to build the project and will run into this issue

 ERROR in Illegal State: external references changed in 
 C:/DataQuint/geo-bag/GeoBAG.Online/GeoBAG/src/app/Shared/Shared.Components.Module.ngfactory.ts.
 
 Old: 
 @angular/core,
 ./Shared.Components.Module,
 @uirouter/angular/lib/directives/uiSref,
 @uirouter/angular/lib/directives/uiView,
 @uirouter/angular/lib/directives/uiSrefActive,
 @uirouter/angular/lib/directives/uiSrefStatus,
 @angular/common,
 ./Components/Header/Header.Component,
 ./Components/HeaderMenu/HeaderMenu.Component,
 ./Components/ModalPopup/ModalConfirm.Component,
 @uirouter/angular/lib/uiRouterNgModule,
 @angular/platform-browser,
 ../GeoVisia/GeoVisia.Components.Module.
 
 New: 
 @angular/core,
 ./Shared.Components.Module,
 @uirouter/angular/lib/directives/uiSref,
 @uirouter/angular/lib/directives/uiView,
 @uirouter/angular/lib/directives/uiSrefActive,
 @uirouter/angular/lib/directives/uiSrefStatus,
 @angular/common,
 ./Components/Header/Header.Component,
 ./Components/HeaderMenu/HeaderMenu.Component,
 ./Components/ModalPopup/ModalConfirm.Component,
 @uirouter/angular,
 @angular/platform-browser,
 ../GeoVisia/GeoVisia.Components.Module

as you can see in the old the reference to the UIRouterModule is

@uirouter/angular/lib/uiRouterNgModule,

and after the change

@uirouter/angular,

how can i resolve this issue ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cthraxcommented, Sep 27, 2019

Ack, I’m sorry @adam-marshall I thought this was a different issue I’m following.

I have not found a solution to this issue, other than not watching with aot. Standard watch works fine.

0reactions
stale[bot]commented, Oct 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 9 hybrid with ui router causes Trying to get the ...
I don't know). But by removing the exports, the error goes away and everything works fine. So for example that admin routing module...
Read more >
angular-ui/ui-router - Gitter
it allows you to make a local build and use it in another app ... AppModule for my app @NgModule({ imports: [BrowserModule, UIRouterModule,...
Read more >
Top 18 Most Common AngularJS Developer Mistakes - Toptal
Just record your actions which led to performance issues and see what happens. Too many watchers? You will see yellow bars taking a...
Read more >
Why I Was Wrong About Attack on Titan - YouTube
Attack on Titan (Shingeki no Kyojin) is one of the most popular anime and manga in the world. And yet somehow when Hoodie...
Read more >
VFX Artist Reveals TRUE Scale of Attack on Titan! - YouTube
Join OUR WEBSITE ▻ https://bit.ly/Crew_MembershipGet an AMD Ryzen Threadripper-powered rig from Puget Systems here: ...
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