Closed CedsTrash closed 6 years ago
Your webpack config should be fine, the package itself isn't properly built. Check out my fork to get it working https://github.com/vasilrimar/canvasjs. You can install through npm by running npm install --save github:vasilrimar/canvasjs
and importing using import * as CanvasJs from 'canvasjs'
.
Thanks a lot @vasilrimar, it works perfectly with your package. Any idea about what's wrong on the original package ?
@cedriccouret If you look at the source, the modules aren't properly exported (here for example)
Ok I see, thanks a lot for your time !
Hi,
I'm creating a VueJS app and I'd like to use CanvasJS. I've npm installed the library, I'm importing it in my Vue component the ES6 way, but when I'm trying to build I get an error saying this:
It looks like my Webpack config is incomplete, could someone help me with this ?
Here is my rules config:
Thanks