Problem with the UiRouterModule when building with --aot --watch
See original GitHub issueHi 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:
- Created 5 years ago
- Comments:12 (1 by maintainers)
Top 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 >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
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.
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.