export 'default' (imported as 'echarts') was not found in 'echarts'

vue在引入echarts是报警告:

 

 

解决方法在此记录下:

在导入echarts时使用

import  * as  echarts from 'echarts'

不要使用

import echarts from 'echarts'

这样就可以解决。

posted @ 2021-12-09 11:03  奔跑的哈密瓜  阅读(2177)  评论(0编辑  收藏  举报