9***@qq.com
9***@qq.com
  • 发布:2024-05-11 14:57
  • 更新:2024-06-03 17:37
  • 阅读:194

【报Bug】app打包时报了一堆nvue样式异常后打包中断失败

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

手机系统: iOS

手机系统版本号: iOS 16

手机厂商: 苹果

手机机型: ipone X

页面类型: nvue

vue版本: vue2

打包方式: 云端

项目创建方式: CLI

CLI版本号: 5.0.8

操作步骤:

打包编译时触发

预期结果:

之前报nvue样式错误还是可以正常打包,希望还是能正常打包

实际结果:

可以编译,运行到手机端没有问题。打包时直接中断了

bug描述:

打app包时,报一堆nvue异常,然后打包程序直接中断了。。
经过我一顿修改,现在就报这些错误了,但是全局搜索都没有查到‘-webkit-transform-origin’和‘-webkit-transform’这两个属性。
打包依然是不行的,直接就中断打包流程了,也没有任何其他报错

[HBuilder] 16:29:41.752 项目 'app-rn' 开始编译...  
[HBuilder] 16:29:45.831 当前项目的uniCloud使用的默认服务空间spaceId为:mp-a1508353-f015-4afa-89cd-7c510436bd40  
[HBuilder] 16:29:45.858 4.15  
[HBuilder] 16:29:45.883 正在编译中...  
[HBuilder] 16:29:48.703 uni-app 有新版本发布,请执行 `npx @dcloudio/uvm@latest` 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/4.08.2024040127.html  
[HBuilder] 16:30:20.893 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:  
[HBuilder] 16:30:20.933 ​WARNING: `-webkit-transform-origin` is not a standard property name (may not be supported) at uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue:1029​  
[HBuilder] 16:30:20.989 项目 'app-rn' 编译成功。  
[HBuilder] 16:30:21.161 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/pages/chat/chat.nvue:226​  
[HBuilder] 16:30:21.196 ERROR: Selector `.uni-popup .uni-popup__wrapper` is not supported. Weex only support classname selector at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:163  
[HBuilder] 16:30:21.239 ERROR: property value `-webkit-sticky` is not supported for `position` (supported values are: `relative`|`absolute`|`sticky`|`fixed`) at uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue:161  
[HBuilder] 16:30:21.274 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/components/uni-im-control/uni-im-control.vue:193​  
[HBuilder] 16:30:21.309 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/components/uni-im-control/uni-im-control.vue:203​  
[HBuilder] 16:30:21.332 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/components/uni-im-control/uni-im-control.vue:207​  
[HBuilder] 16:30:21.369 运行方式:打开 HBuilderX, 导入 dist\build\app-plus 运行。  
[HBuilder] 16:30:21.415 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-badge/components/uni-badge/uni-badge.vue:167​  
[HBuilder] 16:30:21.454 ​WARNING: `-webkit-transform-origin` is not a standard property name (may not be supported) at uni_modules/uni-badge/components/uni-badge/uni-badge.vue:169​  
[HBuilder] 16:30:21.498 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue:181​  
[HBuilder] 16:30:21.539 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/components/uni-im-msg/uni-im-msg.vue:252​  
[HBuilder] 16:30:21.582 ​WARNING: `-webkit-transform` is not a standard property name (may not be supported) at uni_modules/uni-im/components/uni-im-msg/uni-im-msg.vue:285​

以上为编译报错具体信息

2024-05-11 14:57 负责人:DCloud_UNI_FXY 分享
已邀请:
DCloud_UNI_FengXY

DCloud_UNI_FengXY

可以提交一个能重现该问题的测试工程

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

    我上传了一个仅管理员可见的附件,你看看能不能看到

    2024-05-11 15:50

  • DCloud_UNI_FengXY

    回复 9***@qq.com: 看不到,你确认下是不是上传成功了

    2024-05-11 17:50

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

    回复 DCloud_UNI_FengXY: 我重新上传了一下,这次确认上传成功了

    2024-05-12 13:21

9***@qq.com

9***@qq.com (作者)

离谱的来了,,,我同事可以打包,他的hbuilderx是4.08版本的,我是4.15版本的,应该是编译器的问题

9***@qq.com

9***@qq.com (作者)

打包失败的问题还是存在,在同事电脑可以正常打包,我这边偶尔有时候碰巧也能打出来,但是进去只显示tabbar。这个问题不知道怎么排查

要回复问题请先登录注册