Hoo
Hoo
  • 发布:2023-06-08 02:27
  • 更新:2023-06-08 21:19
  • 阅读:494

【报Bug】H5正常,运行到微信小程序也正常,但是预览或者真机调试就不行了。各种报错。

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 3.8.4

第三方开发者工具版本号: 1.06.2303220

基础库版本号: 2.32.1

项目创建方式: HBuilderX

操作步骤:

从Hbulider到微信开发者工具是正常的,但是预览或者真机扫码的时候,就报错。新建别的官方模板也是一样的错误。

预期结果:

预览或者真机扫码能正常显示

实际结果:

预览或者真机扫码无法正常显示

bug描述:

(unknown) [wxapplib]] FrameworkError read mock wxConfig.appLaunchInfo fail: wx is not defined
ReferenceError: read mock wxConfig.appLaunchInfo fail: wx is not defined
at eval (eval at Ce.t.call.document (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:109171)
at Object.get [as appLaunchInfo] (eval at Ce.t.call.document (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:106699)
at r.assign (<anonymous>)
at eval (eval at Ce.t.call.document (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:3:3303)
at eval (eval at Ce.t.call.document (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:3:6000)
at eval (<anonymous>)
at Object.Ce.t.call.document (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18762)
at http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:18768
at Ce (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:20449)
at We (http://127.0.0.1:45960/remote-debug/runtime.js?devtools_ignore=true:1:26136)
eval
runtime.js:1 TypeError: Cannot read property 'getLaunchOptionsSync' of undefined
at Object.1 (weapp:///common/vendor.js:24)
at webpack_require (weapp:///common/runtime.js:92)
at Object.0 (weapp:///common/main.js:27)
at
webpack_require
(weapp:///common/runtime.js:92)
at checkDeferredModules (weapp:///common/runtime.js:48)
at Array.webpackJsonpCallback [as push] (weapp:///common/runtime.js:35)
at eval (weapp:///common/main.js:1)
at C (eval at Ce.t.call.document (runtime.js:1), <anonymous>:3:5787)
at n (eval at Ce.t.call.document (runtime.js:1), <anonymous>:3:4741)
at eval (weapp:///app.js:4)
ye @ runtime.js:1
runtime.js:1 TypeError: Cannot read property 'getSystemInfoSync' of undefined
at Object.eval (weapp:///common/vendor.js:1891)
at Object.2 (weapp:///common/vendor.js:3870)
at webpack_require (weapp:///common/runtime.js:92)
at Object.components/login-create-component (weapp:///components/login.js:162)
at
webpack_require
(weapp:///common/runtime.js:92)
at checkDeferredModules (weapp:///common/runtime.js:48)
at Array.webpackJsonpCallback [as push] (weapp:///common/runtime.js:35)
at eval (weapp:///components/login.js:158)
at C (eval at Ce.t.call.document (runtime.js:1), <anonymous>:3:5787)
at eval (weapp:///components/login.js:169)
ye @ runtime.js:1
runtime.js:1 TypeError: Cannot read property 'indexOf' of undefined
at eval (weapp:///common/vendor.js:3119)
at Array.forEach (<anonymous>)
at initProperties (weapp:///common/vendor.js:3109)
at parseBaseComponent (weapp:///common/vendor.js:3614)
at parseComponent (weapp:///common/vendor.js:3689)
at Object.createComponent (weapp:///common/vendor.js:3730)
at Object.uni_modules/uni-icons/components/uni-icons/uni-icons-create-component (weapp:///uni_modules/uni-icons/components/uni-icons/uni-icons.js:237)
at __webpack_require__ (weapp:///common/runtime.js:92)
at checkDeferredModules (weapp:///common/runtime.js:48)
at Array.webpackJsonpCallback [as push] (weapp:///common/runtime.js:35)

2023-06-08 02:27 负责人:DCloud_UNI_WZF 分享
已邀请:
Hoo

Hoo (作者)

上传了一版小程序,然后扫码了体验版,是能正常访问的。

piaoyi_UI

piaoyi_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

全局搜索报错里面的getSystemInfoSync试试

DCloud_UNI_WZF

DCloud_UNI_WZF

HBuilderX 3.8.4 新建默认模板项目,预览正常,真机调试复现该问题,感谢反馈,已加分

  • Hoo (作者)

    你好,请问你们是改了啥么。现在是,真机可以显示正常。预览扫码显示不了。微信App更新到了,8.0.35

    2023-06-09 08:26

  • DCloud_UNI_WZF

    排查到真机调试1.0复现该问题,测试发现真机调试1.0模式,新建微信小程序的模板项目真机调试同样报错,可在微信开发者社区反馈

    但是目前uniapp vue3 项目真机调试2.0存在白屏问题,测试真机预览正常

    2023-06-09 11:05

要回复问题请先登录注册