打开app
- 发布:2024-03-13 18:19
- 更新:2024-03-15 15:24
- 阅读:489
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版 / 22H2
HBuilderX类型: Alpha
HBuilderX版本号: 4.01
手机系统: iOS
手机系统版本号: iOS 16
手机厂商: 苹果
手机机型: iphone 13
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
进入首页
进入首页
实际结果:
闪退
闪退
bug描述:
同样的app包,在ios16打开出现开屏logo然后闪退,在ios15,ios17都没这个问题
CSF (作者)
hbuildx更新到4.03后打包报错
-
CSF (作者)
回复 HRK_01:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: bank_platform_app@1.10.1
npm ERR! Found: webpack@5.90.3
npm ERR! node_modules/webpack
npm ERR! peer webpack@"^4.0.0 || ^5.0.0" from @soda/friendly-errors-webpack-plugin@1.8.1
npm ERR! node_modules/@soda/friendly-errors-webpack-plugin
npm ERR! @soda/friendly-errors-webpack-plugin@"^1.7.1" from @vue/cli-service@4.5.19
npm ERR! node_modules/@vue/cli-service
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0-0" from @vue/cli-plugin-babel@4.5.19
npm ERR! node_modules/@vue/cli-plugin-babel
npm ERR! dev @vue/cli-plugin-babel@"~4.5.6" from the root project
npm ERR! 3 more (@vue/cli-plugin-router, @vue/cli-plugin-vuex, the root project)
npm ERR! peer webpack@">=2" from babel-loader@8.3.0
npm ERR! node_modules/babel-loader
npm ERR! babel-loader@"^8.0.5" from @hap-toolkit/packager@0.6.13
npm ERR! node_modules/@hap-toolkit/packager
npm ERR! @hap-toolkit/packager@"0.6.13" from @dcloudio/uni-quickapp-native@2.0.2-alpha-4000320240311001
npm ERR! node_modules/@dcloudio/uni-quickapp-native
npm ERR! @dcloudio/uni-quickapp-native@"2.0.2-alpha-4000320240311001" from the root project
npm ERR! 2 more (@hap-toolkit/dsl-vue, @hap-toolkit/server)
npm ERR! babel-loader@"^8.1.0" from @vue/cli-plugin-babel@4.5.19
npm ERR! node_modules/@vue/cli-plugin-babel
npm ERR! dev @vue/cli-plugin-babel@"~4.5.6" from the root project
npm ERR! 8 more (copy-webpack-plugin, css-loader, sass-loader, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev cache-loader@"" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack@4.47.0
npm ERR! node_modules/webpack
npm ERR! peer webpack@"^4.0.0" from cache-loader@4.1.0
npm ERR! node_modules/cache-loader
npm ERR! dev cache-loader@"" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps2024-03-14 16:00
-
回复 d***@chinascope.com: 请注意查看消息哈,我这边需要看看你上传的代码工程,最好精简一些,方便我们定位问题,将精简后的代码压缩成压缩包上传,而不是上传录屏哈
2024-03-14 17:54
复现这个问题了,是npm源的问题,使用npm安装会找不到那几个依赖,换成yarn就好啦~
我给你贴一下命令:
npm i yarn
yarn config set ignore-engines true
yarn install
执行完后重新运行即可
这种情况大部分都是因为网络问题,后续如果还有问题可以在此回复,我负责跟进~