You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into the source code, I figured out the issue is due to index.js using module.exports, which is ES5 syntax; together with import, which is ES6 syntax, which is no longer allowed in Webpack version 2.2.0-rc.5 onwards (see webpack/webpack#3997).
The temporary workaround is to explicitly import from LinearGauge.vue/RadialGauge.vue, eg:
I really like this project, unfortunately it seems incompatible with a standard vue-cli built project. Replicate:
vue init webpack my-project
npm install vue-canvas-gauges --save
add the include from readme:
import { LinearGauge, RadialGauge } from 'vue-canvas-gauges'
=> doesn't compile, I suppose some incompatibility with the webpack config. Hope can be fixed.
The text was updated successfully, but these errors were encountered: