安装 vue-echarts,运行后报错,而且package.json里面没显示vue-echarts信息是啥情况?

来源:3-2 vue-echarts 组件库入门

weixin_慕田峪5054208

2022-01-05

Failed to compile with 1 error 10:55:34 ├F10: AM

This dependency was not found:

  • echarts/core in ./node_modules/_vue-echarts@6.0.0@vue-echarts/dist/index.esm.min.js

To install it, you can run: npm install --save echarts/core
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\hiberfil.sys’

=============================================================
package.json

“dependencies”: {
“core-js”: “^3.6.5”,
“echarts”: “^4.9.0”,
“element-ui”: “^2.4.5”,
“vue”: “^2.6.11”,
“vue-router”: “^3.2.0”
},

写回答

2回答

uuuutiger

2022-01-09

安装最新版的也可以,老师的是旧版本,旧版本绑定options 是:options 新版本是 :option 可以看下github的使用教程

2
1
weixin_宝慕林0453056
你这回答成功解决的我的问题,感谢
2022-03-16
共1条回复

不染的卡卡

2022-01-05

"echarts": "^4.7.0",

"vue-echarts": "^5.0.0-beta.0",

下载这个版本的

2
0

Vue + EChart 4.0 从0到1打造商业级数据报表项目

数据可视化是未来前端技术的标配,是未来前端竞争的破冰利器

5701 学习 · 79 问题

查看课程