-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
ERROR in ChartistModule is not an NgModule #94
Comments
This is probably related to the AoT changes I just made. You can use v0.11.1 until the AoT stuff gets fixed. |
i tried the version
when use
same to version |
Odd. I never got any reports like this. A quick search yields:
So maybe this is an angular-cli bug? |
Thanks for fast reply. I tried to solve this problem on angular-cli. unfortunately no solution for me now. if i solve this. i reply here. |
I found solution. I tested with other packages and compared to angular2-chartist I found 1 difference.
Is necessary edit see a example.
we need to add this.
Next, it is necessary edit the
First go to src directory. Next create new file. named
And everything works fine. No errors. |
This issue was that metadata wasn't being created by |
I tried with version
with |
I think there are issues with angular-cli. You can always revert back to 0.11.1 |
If anyone comes here looking for solution; I found that it works if you import from src, but not if you import from dist
Fixed the "ChartistModule is not an NgModule" error for me |
I suggest using: ng build --env=prod --output-hashing none and works fine |
@chaliaga - Your solution works. Really awsome. |
@chaliaga your solution ng build --env=prod --output-hashing none work for me, thank you |
ng build --prod --aot=false works for me! |
@lfjaramillos
|
@chaliaga
|
@chaliaga, thanks for the solution it really worked like magic. |
I'm getting an error while running the production build with AOT compiler. Can anyone guide me with a solution here?
|
@Dead-Cool Which version of ng-chartist, Angular and Angular CLI are you using? |
I'm using Angular 7, CLI 7 and Chartist 0.11 version. |
NG-chartist. Which version of this library are you using? Are you using the latest 4.1? |
Can you run |
"@angular/animations": "github:angular/animations-builds", |
You are using an old version of ng-chartist which had the bug. You have to update it. |
What is the commad to update it? |
You can use something like npm-check-updates to automatically update your package.json ( |
OS?
Mac OSX El Capitan - 10.11.6 (15G1004)
Versions.
Chartists Versions
I use angular/cli and when use the command
ng serve
returned this errorERROR in ChartistModule is not an NgModule
but, when change and save any file, livereload omitted the error and all ok.the main problem is in production mode. when i tried use the command
ng build
got thisanyone can help me?. i don't know how solve this.
The text was updated successfully, but these errors were encountered: