Hey everyone, I noticed that CanvasJS now supports ES6 module import/export.
So I eagerly went to do a proof of concept and prove it can work with our setup which is VueJS + webpack. However, I am receiving the following error when I try to use it: ‘TypeError: _canvasjs_min__WEBPACK_IMPORTED_MODULE_0__.Chart is not a constructor’. When I console log the CanvasJS object it seems pretty empty.
Any help resolving this issue would be greatly appreciated.
P.S. There was one other bug I noticed that is an easy fix. Our ESLint rules don’t allow trailing spaces, and in the V2.2 min file I downloaded there was a trailing space in the comment above the /* eslint-disable */ comment which means before it disabled the linter, it found something to complain about.