React-Native 新版本无法Debug问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jing85432373/article/details/79849728

最近无聊+手残 升级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了

完美解决!!!

猜你喜欢

转载自blog.csdn.net/jing85432373/article/details/79849728