前端打工人
前端打工人
  • 发布:2024-09-19 16:31
  • 更新:2024-09-19 17:56
  • 阅读:234

【报Bug】hbuilder 不能打包了,急!!!

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macOS Monterey 12.6.1

HBuilderX类型: Alpha

HBuilderX版本号: 4.27

手机系统: Android

手机系统版本号: Android 15

手机厂商: 华为

手机机型: vivo s6

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

之 前一直打包好好的,中间 升级过 hbuilderX,今天打包时突然发现打不了了,报一堆错误。

预期结果:

希望能正常打包

实际结果:

打包失败

bug描述:

之 前一直打包好好的,中间 升级过 hbuilderX,今天打包时突然发现打不了了,报一堆错误。
Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js):

Error: 组件 fileUpload 引用错误,仅支持 import 方式引入组件
[HBuilder] 16:25:45.164 at /Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/util.js:38:13
[HBuilder] 16:25:45.184 at Array.forEach (<anonymous>)
[HBuilder] 16:25:45.204 at parseComponents (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/util.js:32:9)
[HBuilder] 16:25:45.224 at handleComponentsObjectExpression (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/scoped-component-traverse.js:59:22)
[HBuilder] 16:25:45.226 at handleObjectExpression (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/scoped-component-traverse.js:52:5)
[HBuilder] 16:25:45.244 at ExportDefaultDeclaration (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/scoped-component-traverse.js:159:11)
[HBuilder] 16:25:45.269 at NodePath._call (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:46:20)
[HBuilder] 16:25:45.293 at NodePath.call (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:36:17)
[HBuilder] 16:25:45.301 at NodePath.visit (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:84:31)
[HBuilder] 16:25:45.320 at TraversalContext.visitQueue (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:96:16)
[HBuilder] 16:25:45.339 at TraversalContext.visitMultiple (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:67:17)
[HBuilder] 16:25:45.359 at TraversalContext.visit (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:119:19)
[HBuilder] 16:25:45.362 at traverseNode (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
[HBuilder] 16:25:45.379 at NodePath.visit (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:90:52)
[HBuilder] 16:25:45.396 at TraversalContext.visitQueue (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:96:16)
[HBuilder] 16:25:45.413 at TraversalContext.visitSingle (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:72:19)
[HBuilder] 16:25:45.415 at TraversalContext.visit (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:121:19)
[HBuilder] 16:25:45.431 at traverseNode (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
[HBuilder] 16:25:45.448 at traverse (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/index.js:50:34)
[HBuilder] 16:25:45.465 at /Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/babel/scoped-component-traverse.js:116:5
[HBuilder] 16:25:45.468 at parseComponents (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/util.js:9:7)
[HBuilder] 16:25:45.484 at Object.<anonymous> (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js:60:31)
[HBuilder] 16:25:45.501 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
[HBuilder] 16:25:45.519 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
[HBuilder] 16:25:45.521 errno: -3008,
[HBuilder] 16:25:45.538 code: 'ENOTFOUND',
[HBuilder] 16:25:45.554 syscall: 'getaddrinfo',
[HBuilder] 16:25:45.571 hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
[HBuilder] 16:25:45.573 }

2024-09-19 16:31 负责人:无 分享
已邀请:
BeardYound

BeardYound

先搜索fileUpload这个组件,看下哪个页面用了没有引入

前端打工人

前端打工人 (作者)

果然是

要回复问题请先登录注册