Closed ikismail closed 6 years ago
@ikismail
Try to install types for chart.js library, and check if problem is gone or not.
Here's the line which you should type in your application's terminal:
npm install --save-dev @types/chart.js
@Bloodcast69 Still facing the same issue after installing @types/chart.js
Error:
ERROR in ./node_modules/angular-bootstrap-md/esm5/angular-bootstrap-md.es5.js Module not found: Error: Can't resolve 'chart.js' in 'E:\**ProjectDirectory**\node_modules\angular-bootstrap-md\esm5' i 「wdm」: Failed to compile.
"angular-bootstrap-md": "^6.1.1"
working fine without any error
@ikismail could you please provide me with reproduction steps, with which I'll be able to reproduce your problem?
Hi @Bloodcast69 Here Is my environment Settings
I tried to install angular-bootstrap-md
for my angular application of version ^6.2.4
,
When I run npm serve
It throws
ERROR in ./node_modules/angular-bootstrap-md/esm5/angular-bootstrap-md.es5.js Module not found: Error: Can't resolve 'chart.js' in 'E:\**ProjectDirectory**\node_modules\angular-bootstrap-md\esm5' i 「wdm」: Failed to compile.
Hello @ikismail Please install chart.js package and update scripts array in angular.json with:
"node_modules/chart.js/dist/Chart.js"
This warning still present
WARNING in ./node_modules/angular-bootstrap-md/esm5/angular-bootstrap-md.es5.js 6986:53-69 "export 'defineInjectable' was not found in '@angular/core'
@ambujkhanna
Could you please try to remove package-lock.json file and node_modules directory, and execute npm install one more time?
If this won't resolve your problem, could you please provide me with the reproduction repository on which I'll be able to debug your case?
Best Regards, Damian
Getting the same error !
I have already tried these steps but not resolved so i have removed it and now I am using "amCharts" and I find it much better and simple.
Guys if you want help from me, please show me the code which produces you those errors.
Without it, I won't be able to help you well.
i didn't write any special code. I just installed and it fires me error in the library.
Could you please send me your project at my email? d.gemza@mdbootstrap.com
Expected behavior
Actual behavior
Got Error after Installing angular-bootstrap-md
Module not found: Error: Can't resolve 'chart.js'
Your working environment and MDB version information
I Installed
"angular-bootstrap-md": "^6.2.4"
, and got error while running application My angular versionResources (screenshots, code snippets etc.)
For every question of technical nature, in order to get the most detailed answer as soon as possible, ask on our dedicated Support Forum