英文:
Cannot connect to react native debugger
问题
当我在Expo中打开我的应用并点击“打开JS调试器”时,会打开一个单独的窗口,而React Native调试器仍在等待连接。当我关闭此窗口时,JS调试器会自动关闭。之后,我再次执行这些步骤,它会再次在单独的窗口中打开。
有趣的是,在另一个项目中,它会在React Native调试器中打开。我怀疑问题是因为我使用TS而不是JS。
我一直在尝试通过在Google中搜索来解决这个问题,但对我来说都没有效果。
英文:
When I open my app in Expo and press "Open JS Debugger", a separate window opens and react native debugger still waiting for connect. When I close this window, JS Debugger automatically turns off. After that I do these steps again and it opens in a separate window again.
Here is this separate window
Interestingly, that in another project it opens in react native debugger. I doubt, that the problem is because i use TS instead of JS.
I have been trying to fix this problem by searching in google but nothing worked for me.
答案1
得分: 2
只需转到您的app.json文件,将此添加到您的expo对象中:"jsEngine": "jsc",
英文:
Just go to your app.json file add this to your expo objects "jsEngine": "jsc",
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论