-
Notifications
You must be signed in to change notification settings - Fork 122
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
WARNINGs all over the place #149
Comments
Got the same problem here. |
@dolanmiu — Can you please try:
If that works, the code in your library may not support AOT compilation. |
Works fine, with no errors How do I solve it? |
The problem you are facing is not related to the generator, but rather related to your code. There are some good guidelines available on how to write a library that is AOT compatible:
I will close the issue for now because it is not related to this generator, but feel free to re-open if needed. Thanks! |
@dolanmiu — Can you please try @sebastianteres' suggestions at #127 (comment)? Thanks! |
Will do sometime this weekend Thanks |
@dolanmiu — Thank you, much appreciated 👍 |
Wow thank you that worked. I had to export all components declared in my |
@dolanmiu — Awesome, thank you for the confirmation 👍 |
so I'm getting this on a module I had built and compiled for AOT just fine... I've upgraded to @angular 4.2.6 now I see...
thoughts? I've moved from thanks. |
Did you run serve --preserve-symlinks? |
@Janatbek - is that so you can Anyways, I figured things out as it was an issue in my code base I believe where I was defining and exporting an interface from my service and also importing that interface in the same file... curious if it was a VSCode plugin that thought at one point I wanted to import it so it threw the import line up at the top of the file. I did what I always have to do is strip out all the code so that the base module compiles again and then slowly add back code... which is very painful as The kicker was it worked with angular 4.2.3... then when I went to 4.2.6 it stopped... guess they are tightening up the aot build with each new release which is good, but I just wish there was a better way to find AOT issues before hand like a linter etc. |
I am getting so many errors when using this library when using it with
@angular/cli
with this command:Repo URL:
https://github.com/dolanmiu/ng-color
Errors:
The text was updated successfully, but these errors were encountered: