-
Notifications
You must be signed in to change notification settings - Fork 138
UIrouter compile error with Angular Ivy #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm experiencing the same thing when importing a non angular module into app.module. |
Same problem |
same here |
Thank you for this issue with clear reproduction steps. I will take a look this weekend! |
hi same problem here. angular 8 ivy compiler |
I played around with this a bit over the weekend. I think the solution to this may be to use This may require a break in compatibility with Angular v5 but that's OK. We would need another major release of ui-router for Angular (version 5.0.0) |
update: I was able to build the package using ng-packagr and added ui-router to a brand new " |
What issues did you have? Got the WIP somewhere? |
@christopherthielen do we have any progress on this issue ? Angular 9 is round the corner which is ivy. It would be a real shame we ui-router cannot support this. |
here's the branch with ng-packagr support https://github.com/ui-router/angular/compare/ng-packagr?expand=1 To test this locally, I'm using https://github.com/whitecolor/yalc as a local package publisher.
Build
Publish the
Now add it to your downstream app using yalc.
Yarn will complain about missing peer dependencies, so also add the two upstream uirouter dependencies.
|
So I tried the ng-packagr branch with the app from my initial post and I got it to work. Here is what I did: For @uirouter/angular
For the app
Here is my ng-packagr testing branch for the app: https://github.com/jr01/uirouterivy/compare/ng-packagr?expand=1 I'll do some more testing, final goal is to get an ngupgrade + @uirouter/angular-hybrid application to work with Angular 9. Many thanks so far @christopherthielen 🥇 |
@jr01 That sounds great! Btw - you state that you used latest Angular 8. Why not latest beta ( |
@christopherthielen Would you by any chance have a rough idea of when an Ivy compatible version 5 of UI Router could be released? (i.e. october/november versus later) |
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
|
I’m more than fine with that answer @christopherthielen. Sounds good and thanks for your hard (and appreciated) work! |
Looks like we'll be dropping support for Angular versions 7 and below. I was surprised to learn that Angular 8 (without ivy) is also able to lazy load without the |
Hi @christopherthielen, is there anything else blocking you from releasing the Ivy compatible version? We'll be happy to help if there's anything we can do! |
@mgechev thanks for reaching out! I think code-wise, ui-router ivy branch is ready to release. I just want to update docs and examples first. |
Great @christopherthielen - can you release |
@petebacondarwin I'm working on updating it. |
I'm getting
when running
|
@oBusk - if you are using |
@petebacondarwin Oh! Thanks for that! I had an outdated branch for ivy. I got rid of that, got further, but now running into
I don't see any other option for importing |
What are the contents of cool-module.module.ts ? |
@wawyed The issue was that I was not using angular v9 release candidate which is required to run ivy with However |
Hi!
When using Angular Ivy compiler
ng build --prod
fails withThe ivy-ngcc compiler gives some warnings that could be related:
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:
It works fine w/o Angular Ivy:
The text was updated successfully, but these errors were encountered: