hbuiderx更新后出现问题,旧版hbuiderx没问题

- 发布:2025-05-07 11:17
- 更新:2025-05-07 12:03
- 阅读:86
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 11
HBuilderX类型: 正式
HBuilderX版本号: 4.64
手机系统: Android
手机系统版本号: Android 15
手机厂商: vivo
手机机型: 编译时报错
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常编译运行
正常编译运行
实际结果:
无法运行
无法运行
bug描述:
10:37:49.363 ERROR TypeError: Cannot read properties of undefined (reading 'uni-app-plus')
10:37:49.363 TypeError: Cannot read properties of undefined (reading 'uni-app-plus')
10:37:49.363 at Object.chainWebpack (D:\www\xxx\node_modules@dcloudio\vue-cli-plugin-uni\lib\app-plus\index.js:214:52)
10:37:49.363 at D:\www\xxx\node_modules@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:150:21
10:37:49.363 at D:\www\xxx\node_modules@vue\cli-service\lib\Service.js:268:40
10:37:49.363 at Array.forEach (<anonymous>)
10:37:49.363 at Service.resolveChainableWebpackConfig (D:\www\xxx\node_modules@vue\cli-service\lib\Service.js:268:26)
10:37:49.363 at Service.resolveWebpackConfig (D:\www\xxx\node_modules@vue\cli-service\lib\Service.js:272:48)
10:37:49.363 at PluginAPI.resolveWebpackConfig (D:\www\xxx\node_modules@vue\cli-service\lib\PluginAPI.js:132:25)
10:37:49.363 at serve (D:\www\xxx\node_modules@dcloudio\vue-cli-plugin-uni\commands\serve.js:51:31)
10:37:49.363 at Service.run (D:\www\xxx\node_modules@vue\cli-service\lib\Service.js:262:12)
10:37:49.363 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
10:37:49.394 已停止运行...
zzgxx (作者)
4.64运行H5没问题安卓就不行了,4.57安卓可以运行的,不知道这两个版本有什么相关的差别
2025-05-07 11:46
1***@qq.com
我们是从低版本的HbuildX升级上来之后,本地用的nvm,提示node找不到,然后配置node后,打包没问题。但是编译运行就出现了问题。
2025-05-07 12:06
1***@qq.com
ERROR TypeError: Cannot read properties of undefined (reading 'uni-app-plus')
11:54:16.350 TypeError: Cannot read properties of undefined (reading 'uni-app-plus')
11:54:16.350 at Object.chainWebpack
2025-05-07 12:06