Topic: Webpack Error "Can't resolve chart.js"
Kiril free asked 5 years ago
I'm getting "Can't resolve chart.js" when including mdbpro in my webpack config.
This is the line in the webpack.config: import 'mdbootstrap-pro';
Do I have to include other import?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.11.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Kiril free commented 5 years ago
OK, I install chart.js and it compiles OK now but when I run the program I get this message in the console: Cannot assign to read only property 'exports' of object '# from mdb.min.js
Grzegorz Bujański staff commented 5 years ago
Hi. This is a problem with the webpack configuration. We try to create the perfect config, in which there will be no problems.
Kiril free commented 4 years ago
Any development with the webpack issue? We really need this to work, we can't go in production with librairies on the side not included in our webpack compilation.
Grzegorz Bujański staff commented 4 years ago
Hi,
We're working on it all the time. But we need more time for this.
Best, Grzegorz
Kiril free commented 4 years ago
Common guys, it's been at least 3 months now that the Webpack issue has been noticed. You should have resolve this by now! We have bought a package to save time in our development and we're stuck because of that thing!
Grzegorz Bujański staff commented 4 years ago
Hi.
Sorry about that. The only thing we can suggest at the moment is that the problem appears after installation by npm. If adding our package to the assets folder (or another one where you store external libraries in your project), the problem should disappear.
blend3dweb free commented 4 years ago
https://stackoverflow.com/questions/59638363/module-not-found-error-cant-resolve-chart-js-in-node-modules-ng2-charts-fe