TypeError: Cannot read properties of undefined (reading 'map')

来源:3-3 v-charts 组件库入门

晓之蛇

2022-11-15

图表正常展示,但控制台提示下面的错误,请问如何解决?

[Vue warn]: Error in created hook: "TypeError: Cannot read properties of undefined (reading 'map')"

http://img.mukewang.com/szimg/637359da095315b214880410.jpg


写回答

2回答

慕先生8083473

2023-04-14

找到main.js 

在new Vue之前加上这一句

Vue._watchers = Vue.prototype._watchers = []


1
0

JavaScript__yxq

2023-01-10

俺也一样

0
0

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

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

5701 学习 · 79 问题

查看课程