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://yiyeo.com/jishu/339.html