UIrouter compile error with Angular Ivy
See original GitHub issueHi!
When using Angular Ivy compiler ng build --prod
fails with
ERROR in src/app/app.module.ts(12,12): error TS-991010: Value at position 1 in the NgModule.importss of AppModule is not a reference: [object Object]
The ivy-ngcc compiler gives some warnings that could be related:
Compiling @uirouter/core : module as esm5 Warning: Unknown member type: "[key: string]: any; Compiling @uirouter/angular : module as esm5 Warning: Unknown member type: "[key: string]: any;
Here is a github repo to reproduce the issue uirouterivy and this commit is all that was done on top of a ng new uirouterivy
.
Steps to reproduce the issue:
git clone https://github.com/jr01/uirouterivy
cd uirouterivy
npm install
ng build --prod
It works fine w/o Angular Ivy:
git checkout 456833
ng build --prod
Issue Analytics
- State:
- Created 4 years ago
- Reactions:16
- Comments:27 (15 by maintainers)
Top Results From Across the Web
Angular 9 hybrid with ui router causes Trying to get the ...
So i've changed it to ng build with a minor webpack config for loading our translations. And same error, so I don't think...
Read more >UI-Router for AngularJS (1.x)
UI -Router is the defacto standard for routing in AngularJS. Influenced by the core angular router $route and the Ember Router, UI-Router has ......
Read more >Update Angular to v15
When a class inherits its constructor from a base class, the compiler can report an error when that constructor cannot be used for...
Read more >The Angular Ivy guide for library authors - DEV Community
The Ivy Instruction Set which is the compilation output in directive and component rendering functions will not be finalised before Angular ...
Read more >All Perks, No Hassle: An Angular 9 Tutorial - Toptal
Another big improvement introduced in Angular 9 and Angular Ivy is the debugging experience. The compiler now can detect more errors and throw...
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
Released v6.0.0 https://github.com/ui-router/angular/releases/tag/6.0.0
I’ve made more some progress
I’m not going to make any promises on timing of an ivy compatible release, but things are looking pretty good