1. 首页 > 知识 > 技术

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

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'”



本文由傻鸟发布,不代表傻鸟立场,转载联系作者并注明出处:https://www.shaniao.net/jishu/338.html

加载中~

联系我们

在线咨询:点击这里给我发消息

微信号:

工作日:10:30-15:30,节假日休息