Closed uwburn closed 1 year ago
I suspect your might be importing vue
from two different locations.
Try this: https://github.com/ecomfe/vue-echarts/issues/644#issuecomment-1211434054
Thanks a lot for support, it works.
For future reference on how to fix on Quasar v1, an additional line should be added on the chainWebpack
handler inside of quasar.conf.js
:
chainWebpack (chain) {
chain.plugin('eslint-webpack-plugin')
.use(ESLintPlugin, [{ extensions: [ 'js', 'vue' ] }]);
// Add this workaround to solve issues with vue-echarts
chain.resolve.alias.set("vue", path.resolve('./node_modules/vue/dist/vue.runtime.esm.js'));
}
Confirmation
How are you introducing Vue-ECharts into your project?
ES Module imports
Versions
Details
I'm trying to upgrade an existing Quasar v1 project that was built with Vue 2.6 to Vue 2.7, attempting to get rid of
@vue/composition-api
.As soon as i step into the component containing
vue-echarts
i get the following warnings and errors in the console:I tried to debug it but i'm not so inside the internals of
vue-demi
to understand what's wrong with that.To exclude possible issues with my original project, i tested on a newly created Quasar v1 project (which is linked for reproduction).
Any idea of what can be the culprit?
Reproduction
https://github.com/uwburn/vue-echarts-quasar