q***@qq.com
q***@qq.com
  • 发布:2022-06-08 09:11
  • 更新:2022-06-13 11:31
  • 阅读:481

【报Bug】ERROR TypeError: Cannot read property 'independent' of undefined

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 11

HBuilderX类型: 正式

HBuilderX版本号: 3.4.14

手机系统: Android

手机系统版本号: Android 12

手机厂商: 小米

手机机型: 12

页面类型: nvue

vue版本: vue2

nvue编译模式: 纯nvue

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

ERROR TypeError: Cannot read property 'independent' of undefined

预期结果:

ERROR TypeError: Cannot read property 'independent' of undefined

实际结果:

ERROR TypeError: Cannot read property 'independent' of undefined

bug描述:

09:08:34.879 TypeError: Cannot read property 'independent' of undefined  
09:08:34.883     at createIndependentPlugins (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-mp-weixin\lib\createIndependentPlugin.js:14:44)  
09:08:34.883     at webpackConfig (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\mp\index.js:178:10)  
09:08:34.887     at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\configure-webpack.js:186:31  
09:08:34.887     at D:\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\Service.js:251:21  
09:08:34.891     at Array.forEach (<anonymous>)  
09:08:34.891     at Service.resolveWebpackConfig (D:\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\Service.js:248:30)  
09:08:34.896     at PluginAPI.resolveWebpackConfig (D:\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\PluginAPI.js:132:25)  
09:08:34.896     at module.exports (D:\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\commands\build\resolveAppConfig.js:39:25)  
09:08:34.901     at getWebpackConfig (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:84:88)  
09:08:34.902     at getWebpackConfigs (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:113:13)  
09:08:34.906     at build (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:153:26)  
09:08:34.907     at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:75:11  
09:08:34.912     at Service.run (D:\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\Service.js:230:12)  
09:08:34.912     at Object.<anonymous> (D:\HBuilderX\plugins\uniapp-cli\bin\uniapp-cli.js:51:9)  
09:08:34.919     at Module._compile (internal/modules/cjs/loader.js:999:30)  
09:08:34.919     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
2022-06-08 09:11 负责人:无 分享
已邀请:
q***@qq.com

q***@qq.com (作者) - aaaaaaaaaaaaa

3.4.7正常,一更新炸了,哎,能不能稳定点。

q***@qq.com

q***@qq.com (作者) - aaaaaaaaaaaaa

@DCloud_UNI_GSQ
看下这个,项目没做任何改动,3.4.7一切正常,一更新直接异常,回退就恢复正常。

DCloud_UNI_Anne

DCloud_UNI_Anne

问题确认,即将修复。已加分感谢您的反馈!

DCloud_UNI_GSQ

DCloud_UNI_GSQ

临时解决办法:

在HBuilderX 3.4.14目录下执行 npx patch-hbuilderx-plugins

  • q***@qq.com (作者)

    ? HBuilderX Path D:\HBuilderX  
    HBuilderX Version: 3.4.14.20220607
    Patches download success
    patch-package 6.4.7
    Applying patches...
    No patch files found
    Patch Done

    试了,没用。

    2022-06-10 17:17

  • DCloud_UNI_GSQ

    回复 q***@qq.com: 把HBuilderX放c盘再试试,正常应该显示安装2个补丁

    2022-06-10 21:10

  • DCloud_UNI_GSQ

    回复 q***@qq.com: HBuilderX 3.4.15 已修复

    2022-06-13 11:31

DCloud_UNI_GSQ

DCloud_UNI_GSQ

HBuilderX 3.4.15 已修复

要回复问题请先登录注册