16:25-32 "export 'default' (imported as 'echarts') was not found in 'echarts'
时间: 2023-10-20 17:33:14 浏览: 133
这个错误信息是由于在导入Echarts库时使用了错误的语法导致的。正确的写法是使用`import * as echarts from 'echarts'`或者`const echarts = require('echarts')`。另外,如果你已经安装了旧版本的Echarts,你可以使用`npm uninstall echarts`来卸载它,然后使用`npm install echarts@4.1.0`来安装4.1.0版本的Echarts。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘ 警告解决方案](https://blog.csdn.net/weixin_44198965/article/details/115542682)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [解决 “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘ 问题](https://blog.csdn.net/qq_41451744/article/details/125185328)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文