You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading my project to Angular 7 i am getting below error while running ng build --prod command. ng serve is working fine.
ERROR in : Unexpected value 'ChartistModule in E://node_modules/ng-chartist/bundles/ng-chartist.umd.js' imported by the module 'ChartsNg2Module in E://src/app/charts/charts.module.ts'. Please add a @NgModule annotation.
When i hover over the import statement in the module file it says:
Could not find a declaration file for module 'ng-chartist'. 'e:/node_modules/ng-chartist/bundles/ng-chartist.umd.js' implicitly has an 'any' type.
Try npm install @types/ng-chartist if it exists or add a new declaration (.d.ts) file containing declare module 'ng-chartist';
[ts]
Could not find a declaration file for module 'ng-chartist'. 'e:/node_modules/ng-chartist/bundles/ng-chartist.umd.js' implicitly has an 'any' type.
Try npm install @types/ng-chartist if it exists or add a new declaration (.d.ts) file containing declare module 'ng-chartist';
Otherwise Angular 6 and 7 aot builds will fail (which is rather important).
If you are not planning to update this library, you should state in the Readme that the library is only compatible with Angular 4 and 5.
As I said before, I am more than willing to review a PR if someone opens one and the issue would probably get resolved faster if someone does go that route.
Hello there,
After upgrading my project to Angular 7 i am getting below error while running
ng build --prod
command.ng serve
is working fine.When i hover over the import statement in the module file it says:
"@angular/core": "7.0.0",
"ng-chartist": "^2.0.0-beta.1",
"@types/chartist": "0.9.43",
"chartist": "0.11.0",
Thank you.
The text was updated successfully, but these errors were encountered: