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://shaniao.net/jishu/338.html