在使用echarts和echarts-gl插件的时候报了以下错误
ReferenceError: __DEV__ is not defined
at eval (geo3DCreator.js:101:1)
at ./node_modules/echarts-gl/src/coord/geo3DCreator.js (128.js:2525:1)
at __webpack_require__ (app.js:854:30)
at fn (app.js:151:20)
at eval (geo3D.js:6:77)
at ./node_modules/echarts-gl/src/component/geo3D.js (128.js:2237:1)
at __webpack_require__ (app.js:854:30)
at fn (app.js:151:20)
at eval (index.js:4:78)
at ./node_modules/echarts-gl/index.js (128.js:1481:1)
解决办法:
将echarts-gl版本降低
npm install echarts-gl@1.1.0 --save
重新安装依赖
npm i
然后重新启动项目