加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

React-Native 新版本无法Debug问题

发布时间:2020-12-15 06:30:22 所属栏目:百科 来源:网络整理
导读:最近无聊+手残 升级rn到最新版本,然后出现了无法debug问题 具体症状表现为 ( index ): 94 Uncaught TypeError: Cannot set property 'volume' of null at Object .render (( index ): 94 ) at Object .setState (( index ): 48 ) at WebSocket.ws.onopen ((

最近无聊+手残 升级rn到最新版本,然后出现了无法debug问题
具体症状表现为

(index):94 Uncaught TypeError: Cannot set property 'volume' of null
    at Object.render ((index):94)
    at Object.setState ((index):48)
    at WebSocket.ws.onopen ((index):152)
render @ (index):94
setState @ (index):48
ws.onopen @ (index):152
(index):188 Uncaught (in promise) TypeError: Cannot read property 'postMessage' of undefined
    at WebSocket.ws.onmessage ((index):188)
ws.onmessage @ (index):188

开始以为跨域访问导致,无脑改 谷歌浏览器设置,然并卵

后来各种百度,各种谷歌,各种qq,
最终解决方案
最新版本会根据配置的dubug服务器地址打开浏览器

so,只要把浏览器前面的ip地址改成 localhost就ok了

完美解决!!!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读