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 compile error with Angular Ivy

See original GitHub issue

Hi!

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:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

6reactions
christopherthielencommented, Nov 12, 2019
3reactions
christopherthielencommented, Oct 9, 2019

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

git checkout ivy
yarn install
cd shinyivyapp
yarn install
npm run develop
Read more comments on GitHub >

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

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