高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue (5:7): Error when using sourcemap for reporting an error: Can't resolve original location of error.
7***@qq.com
- 发布:2024-07-24 14:40
- 更新:2024-07-24 15:37
- 阅读:116
2 个回复
月下浊酒一杯 - 咖啡续命,佛渡有缘人
什么端 app端吗?
月下浊酒一杯 - 咖啡续命,佛渡有缘人
已处理 谢谢反馈 是vue3的插件js暴露用了vue2的了
7***@qq.com (作者)
还是报一样的问题:
/../../../../../C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue (5:7): Error when using sourcemap for reporting an error: Can't resolve original location of error.
[HBuilder] 14:37:51.995 x Build failed in 983ms
[HBuilder] 14:37:52.198 Error [RollupError]: ../../../../../../C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue (5:7): "default" is not exported by "../../../../../../C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/amapWx.js", imported by "../../../../../../C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue".
[HBuilder] 14:37:52.376 file: C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue:5:7
[HBuilder] 14:37:52.539 3: import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, creat...
[HBuilder] 14:37:52.725 4:
[HBuilder] 14:37:52.901 5: import amapWx from './amapWx.js';
[HBuilder] 14:37:53.074 ^
[HBuilder] 14:37:53.265 6:
[HBuilder] 14:37:53.456 7: import { onMounted, ref, getCurrentInstance } from 'vue';
[HBuilder] 14:37:53.633 at getRollupError (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/parseAst.js:392:41)
[HBuilder] 14:37:53.809 at error (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/parseAst.js:388:42)
[HBuilder] 14:37:53.972 at Module.error (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:13688:16)
[HBuilder] 14:37:54.135 at Module.traceVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:14136:29)
[HBuilder] 14:37:54.291 at ModuleScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:11817:39)
[HBuilder] 14:37:54.440 at ChildScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:6037:38)
[HBuilder] 14:37:54.594 at FunctionScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:6037:38)
[HBuilder] 14:37:54.743 at FunctionBodyScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:6037:38)
[HBuilder] 14:37:54.894 at FunctionScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:6037:38)
[HBuilder] 14:37:55.046 at FunctionBodyScope.findVariable (file:///D:/Tool/HbuilderX/HBuilderX/plugins/uniapp-cli-vite/node_modules/rollup/dist/es/shared/node-entry.js:6037:38) {
[HBuilder] 14:37:55.199 binding: 'default',
[HBuilder] 14:37:55.363 code: 'MISSING_EXPORT',
[HBuilder] 14:37:55.515 exporter: 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/amapWx.js',
[HBuilder] 14:37:55.685 id: 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue',
[HBuilder] 14:37:55.866 url: 'https://rollupjs.org/troubleshooting/#error-name-is-not-exported-by-module',
[HBuilder] 14:37:56.069 pos: 532,
[HBuilder] 14:37:56.226 loc: {
[HBuilder] 14:37:56.389 column: 7,
[HBuilder] 14:37:56.547 file: 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue',
[HBuilder] 14:37:56.703 line: 5
[HBuilder] 14:37:56.858 },
[HBuilder] 14:37:57.006 frame: '3: import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, creat...\n' +
[HBuilder] 14:37:57.151 '4: \n' +
[HBuilder] 14:37:57.311 "5: import amapWx from './amapWx.js';\n" +
[HBuilder] 14:37:57.480 ' ^\n' +
[HBuilder] 14:37:57.654 '6: \n' +
[HBuilder] 14:37:57.810 "7: import { onMounted, ref, getCurrentInstance } from 'vue';",
[HBuilder] 14:37:57.969 watchFiles: [
[HBuilder] 14:37:58.121 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/main.js',
[HBuilder] 14:37:58.269 'C:\Users\L001776C\Documents\HBuilderProjects\vue3高德地图--地图选点插件示例\pages.json',
[HBuilder] 14:37:58.419 'C:\Users\L001776C\Documents\HBuilderProjects\vue3高德地图--地图选点插件示例\pages\index\index.vue',
[HBuilder] 14:37:58.569 'C:\Users\L001776C\Documents\HBuilderProjects\vue3高德地图--地图选点插件示例\pages\map\index.vue',
[HBuilder] 14:37:58.714 'C:\Users\L001776C\Documents\HBuilderProjects\vue3高德地图--地图选点插件示例\manifest.json',
[HBuilder] 14:37:58.869 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/App.vue',
[HBuilder] 14:37:59.016 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/pages/map/index.vue',
[HBuilder] 14:37:59.166 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/pages/index/index.vue',
[HBuilder] 14:37:59.312 'D:\Tool\HbuilderX\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-app\dist\uni-app.es.js',
[HBuilder] 14:37:59.460 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/vue3-map.vue',
[HBuilder] 14:37:59.605 'C:\Users\L001776C\Documents\HBuilderProjects\vue3高德地图--地图选点插件示例\uni_modules\vue3-map\package.json',
[HBuilder] 14:37:59.753 'C:/Users/L001776C/Documents/HBuilderProjects/vue3高德地图--地图选点插件示例/uni_modules/vue3-map/components/vue3-map/amapWx.js',
[HBuilder] 14:37:59.903 'D:\Tool\HbuilderX\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.es.js'
[HBuilder] 14:38:00.054 ],
[HBuilder] 14:38:00.353 }
[HBuilder] 14:38:00.507 Build failed with errors.
[HBuilder] 16:20:41.626 项目 'vue3高德地图--地图选点插件示例' 开始编译...
[HBuilder] 16:20:44.427 node:internal/modules/cjs/loader:1143
[HBuilder] 16:20:44.584 throw err;
[HBuilder] 16:20:44.736 ^
[HBuilder] 16:20:44.900 Error: Cannot find module 'D:\Tool\HbuilderX\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\bin\uni.js'
[HBuilder] 16:20:45.057 at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
[HBuilder] 16:20:45.216 at Module._load (node:internal/modules/cjs/loader:981:27)
[HBuilder] 16:20:45.365 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
[HBuilder] 16:20:45.515 at node:internal/main/run_main_module:28:49 {
[HBuilder] 16:20:45.661 code: 'MODULE_NOT_FOUND',
[HBuilder] 16:20:45.814 requireStack: []
[HBuilder] 16:20:45.979 }
[HBuilder] 16:20:46.146 Node.js v18.20.0
2024-07-24 16:27
7***@qq.com (作者)
打包就报错,使用的是hbuilderx 4.24
2024-07-24 16:30
月下浊酒一杯
回复 7***@qq.com: 现在还没有好吗?这边测试一直正常了 下载最新版插件
2024-07-29 17:22
月下浊酒一杯
回复 7***@qq.com: 还不行联系qq
1848961270
2024-07-29 17:33