Vue使用虚拟DOM_-vue使用echarts.js:873 - 使用echarts开发项目时,报错:
文章目录
前言一、解决方案
前言
使用echarts开发项目时,报错:
echarts.js:873 Uncaught TypeError: Cannot read properties of undefined (reading ‘type’)
一、解决方案
//引入markRaw
import * as echarts from 'echarts';
import { markRaw } from 'vue';
this.myChart = markRaw(echarts.init(document.getElementById('barEchart'))); 拼多多帮助力入口