echarts在开发者工具下正常显示,但预览或真机时就提示 echarts.js没定义?
在开发者工具环境下没有问题,但在预览或真机中就提示
具体分包:
"subpackages": [{
"root": "packageA",
"pages": [
"pages/mine",
"pages/order",
"pages/chart/chart"
] } ],
JS引用:
import * as echarts from '../../ec-canvas/echarts';
Json引用:
{
"usingComponents": {
"ec-canvas":"../../ec-canvas/ec-canvas"
}
}
报错如下: