Comments (9)
npm ls vue-demi
看一下?
from vue-echarts.
npm ls vue-demi
看一下?
from vue-echarts.
npm ls vue-demi
看一下?
关键还出了另一个一样的问题
这个地方也没有官方的判断,不知道为什么
from vue-echarts.
[email protected]
应该是已经解决了你上面说的那个问题的了。请提供一个最小化的复现,否则没有办法提供帮助。
from vue-echarts.
[email protected]
应该是已经解决了你上面说的那个问题的了。请提供一个最小化的复现,否则没有办法提供帮助。
我也看vue-demi代码了,index.cjs文件中是已经有判断了,但是index.mjs中是没有那段判断的,而我这编译完vue-charts后的文件里用的就是index.mjs的代码,请问下这个是我环境配置的问题吗?
from vue-echarts.
看看你的 vue
是不是解析到 cjs 版本去了。如果是的话可以在配置里面强行指定一下 esm 版本试一下。类似 #644 (comment)
from vue-echarts.
看看你的
vue
是不是解析到 cjs 版本去了。如果是的话可以在配置里面强行指定一下 esm 版本试一下。类似 #644 (comment)
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = webpack_require(3797);
;// CONCATENATED MODULE: ./node_modules/vue-echarts/node_modules/vue-demi/lib/index.mjs
我这编译后显示vue是引入的commonjs版本,但是vue-echarts的vue-demi却使用的mjs版本文件,不知道是哪里问题导致的
我另一个插件也用着vue-demi却没有这问题,把vue-echarts移除了就不报错了,
配置了
alias: {
vue$: 'vue/dist/vue.esm.js' // 将 'vue$' 映射到 vue.esm.js
}
也不行,是因为babel的问题吗
from vue-echarts.
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = webpack_require(3797);
;// CONCATENATED MODULE: ./node_modules/vue-echarts/node_modules/vue-demi/lib/index.mjs
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = webpack_require(3797);
;// CONCATENATED MODULE: ./node_modules/vue-echarts/node_modules/vue-demi/lib/index.mjs
根据上面代码来看应该是vue-echarts跟我的项目引入方式冲突?
from vue-echarts.
external
最后这么解决的?
from vue-echarts.
Related Issues (20)
- From version 6.6.1 setting min-height make the chart disappear (height=0px) HOT 1
- Default ESM package HOT 2
- chart not appear when using option dataset with source HOT 1
- Native listener on VueEcharts Component does not work in Vue 3 HOT 4
- Types broken with ECharts 5.5 + Vue 3 + `moduleResolution: bundler` HOT 1
- useAutoresize throttle switch to requestAnimationFrame method HOT 3
- Nuxt 3 Module HOT 3
- Renderer 'undefined' is not imported. Please import it first. HOT 8
- autoresize prop doesn't work as expected from 6.6.1 HOT 1
- 官网的import code generator似乎不能正常工作了 HOT 1
- h5手机端支持吗?手机端的点击事件能触发吗? HOT 1
- Unable to compile after the introduction of vitepress, error: ERR-REQUIRE-ESM HOT 1
- 路由缓存时,切换Tab页面,ECHARTS不显示 HOT 3
- 安装报错 Invalid response body while trying to fetch https://registry.npmjs.org/resize-detector: Cannot read properties of null (reading 'pickAlgorithm') HOT 2
- `npm i echarts vue-echarts` not installing for vue3 project HOT 1
- build后无法获取echart的实例 HOT 13
- 使用dataset数据集多纬度时报错 HOT 3
- vue-echart instance doesn't have off function HOT 5
- 示例代码显示内容空白 HOT 3
- use autoresize;When the height changes decreases, the chart is abnormal HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-echarts.