html5 - react import echarts3 world.js问题
本文介绍了html5 - react import echarts3 world.js问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
import echarts from 'echarts/dist/echarts.js';
import 'echarts/map/js/world.js';
echarts3是通过npm 安装,路径也正确,就是不知道为什么提示map world not exists。
解决方案
import echarts from 'echarts';
require('echarts/map/js/world.js');
这篇关于html5 - react import echarts3 world.js问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文