Error when using sourcemap for reporting an error: Can‘t resolve original location of error.
Vue3导入js文件失败
·
vue3导入js文件失败,异常如下:
import amapFile from '@/common/amap-wx.130.js'
Error when using sourcemap for reporting an error: Can't resolve original location of error. Non-existent export 'default' is imported from ../../../../../..common/amap-wx.130.js
解决方案:
把“import amapFile from '@/common/amap-wx.130.js'”,
改为 “import * as amapFile from '@/common/amap-wx.130.js'”
更多推荐
已为社区贡献1条内容
所有评论(0)