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

- 发布:2023-06-08 02:27
- 更新:2023-06-08 21:19
- 阅读:786
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.4
第三方开发者工具版本号: 1.06.2303220
基础库版本号: 2.32.1
项目创建方式: HBuilderX
操作步骤:
预期结果:
预览或者真机扫码能正常显示
预览或者真机扫码能正常显示
实际结果:
预览或者真机扫码无法正常显示
预览或者真机扫码无法正常显示
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)


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