Topic: chart.js required
ERROR in ./node_modules/ng-uikit-pro-standard/esm5/ng-uikit-pro-standard.es5.js Module not found: Error: Can't resolve 'chart.js' in '/home/node/app/node_modules/ng-uikit-pro-standard/esm5' ERROR in chunk main [initial] [name].[chunkhash:20].js /home/node/app/node_modules/cache-loader/dist/cjs.js??ref--8-0!/home/node/app/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js??ref--8-1!/home/node/app/node_modules/ng-uikit-pro-standard/esm5/ng-uikit-pro-standard.es5.js 16949a39ea71ba1e397b56df0237a055 Unexpected token (12424:19) | options: options | }; | return new !(function webpackMissingModule() { var e = new Error("Cannot find module "chart.js""); e.code = 'MODULE_NOT_FOUND'; throw e; }())(ctx, opts); | }; | /**
KarolD answered 6 years ago
npm i chartjsand manually adding it to scripts array in angular-cli (I'm currently using angular 5), which didn't work.
Damian Gemza staff answered 6 years ago
KarolD commented 6 years ago
Okay, my fault, apparently chartjs and chart.js are two diffrent stories. Now its working!FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
fellah pro commented 6 years ago
the same withng serve
ERROR in ./node_modules/ng-uikit-pro-standard/esm5/ng-uikit-pro-standard.es5.js Module not found: Error: Can't resolve 'chart.js' in '/home/node/app/node_modules/ng-uikit-pro-standard/esm5'