当前位置: 首页 > 工具软件 > Location Map > 使用案例 >

Error when using sourcemap for reporting an error: Can‘t resolve original location of error.

申昌勋
2023-12-01
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'”
 类似资料:

相关阅读

相关文章

相关问答