vue引用警告 “export ‘default‘ (imported as ‘vant‘) was not found in ‘./utils/vant‘
想按需引入vantUI库时,main.js文件引入错误问题原因:ES6 编译器识别问题解决方法:import vant from './utils/vant'改为import * as vant from './utils/vant'
·
想按需引入vantUI库时,main.js文件引入错误
问题原因:ES6 编译器识别问题
解决方法:
import vant from './utils/vant'
改为
import * as vant from './utils/vant'
更多推荐
已为社区贡献2条内容
所有评论(0)