x***@outlook.com
x***@outlook.com
  • 发布:2019-11-30 17:06
  • 更新:2022-05-25 14:40
  • 阅读:1621

【报Bug】Cannot read property '__needTouchEvent__' of undefined

分类:uni-app

详细问题描述

(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)

[内容]

重现步骤

[步骤]

1、真机调试 荣耀note8 EMUI8.0 Android8.0 4G内存 屏幕2560*1440
常出现 [结果]里的问题,然后 屏幕白屏,只显示 tabbar按钮,只有tabbar可以切换,其他内容都是白屏

2、打包出来的 apk 安装 也会常出现 以上问题

[结果]

TypeError: Cannot read property '__needTouchEvent__' of undefined  
16:35:18.154 webviewScriptError  
16:35:18.176 Cannot read property '__needTouchEvent__' of undefined  
16:35:18.197 TypeError: Cannot read property '__needTouchEvent__' of undefined  
16:35:18.242 Uncaught TypeError: Cannot read property '__needTouchEvent__' of undefined at __uniappview.html:1  
16:35:18.265 TypeError: Cannot read property 'id' of undefined  
16:35:18.289 at window.UniLaunchWebviewReady (file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14261:103)  
16:35:18.312 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14263:9  
16:35:18.336 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14264:3 at uniapp://ready:182  
16:35:18.358 webviewScriptError  
16:35:18.381 Cannot read property 'id' of undefined  
16:35:18.406 TypeError: Cannot read property 'id' of undefined  
16:35:18.428 at window.UniLaunchWebviewReady (file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14261:103)  
16:35:18.451 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14263:9  
16:35:18.474 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14264:3 at uniapp://ready:182  
16:35:18.499 Uncaught TypeError: Cannot read property 'id' of undefined at app-view.js:14261  

[期望]

[如果语言难以表述清晰,拍一个视频或截图,有图有真相]

IDE运行环境说明

[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
HBuilderX

[IDE版本号]
2.4.2.20191115

[windows版本号]

[mac版本号]
10.15 (19A602)

uni-app运行环境说明

[运行端是h5或app或某个小程序?]
app

[运行端版本号]

[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
HBuilderX构建

[编译模式是老模板模式还是新的自定义组件模式?]
自定义组件模式

App运行环境说明

[Android版本号]
8.0

[iOS版本号]

[手机型号]
荣耀note8 EMUI8.0

[模拟器型号]

附件

[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]

[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]

[App安装包或H5地址]
http://app.xiaocaogo.com/download

[可重现代码片段]

联系方式

[邮箱]
629526514@qq.com

2019-11-30 17:06 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

请问解决了吗?遇到同样的问题

qsh

qsh

解决了吗

愤青

愤青

Dcloud团队 ,说实话确实是拉胯。搞个IDE,好像只是在适配mac.那pc丑的一批。各端开发,异常差异化,特别明显。IDE真他妈还不如别人的vscode. 华丽呼啸一大堆,结果妈个IDE都做不顺畅

2***@qq.com

2***@qq.com

我也是一样的问题,其他调试方式都正常,就真机调试时点hbuidexX上面的调试按钮然后页面就白屏,只剩下原生的tabbar显示,我自定义的都不显示
五月 25, 2022 2:23:59 下午 com.pandora.launcher.core.iphone.jna.LibraryFinder getMDLibrary
严重: Could not find the MobileDevice Library!
2022-05-25 14:23:59 [LanguageServerProcess] randomPort::::::15341
2022-05-25 14:24:53 [LanguageServerProcess] zbc connect Mobile is 6QDDU20414011697=>6QDDU20414011697
2022-05-25 14:26:34.994 [WARNING:] QObject: Cannot create children for a parent that is in a different thread.
(Parent is QProcess(0x19e90374), parent's thread is QThread(0x775ba0), current thread is WeexDebugThread(0x19e90368)
2022-05-25 14:26:34.995 [WARNING:] QObject: Cannot create children for a parent that is in a different thread.
(Parent is QProcess(0x19e90374), parent's thread is QThread(0x775ba0), current thread is WeexDebugThread(0x19e90368)
2022-05-25 14:26:35.001 [WARNING:] QObject: Cannot create children for a parent that is in a different thread.
(Parent is QProcess(0x19e90374), parent's thread is QThread(0x775ba0), current thread is WeexDebugThread(0x19e90368)

该问题目前已经被锁定, 无法添加新回复