vue報錯Object(...) is not a function at Module../node_modules/vue-echarts/dist/index.esm.min.js

Object(...) is not a function報錯原因有很多,本方案只適合以下情形

報錯信息包含 "node_modules/vue-echarts"

解決方案
npm i vue-demi

報錯原因:新版 vue-echarts 使用了 vue-demi 包,用來兼容 Vue 2 / 3
相關鏈接:https://zhuanlan.zhihu.com/p/355180255

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章