无法连接到React Native调试器

huangapple go评论60阅读模式
英文:

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",

huangapple
  • 本文由 发表于 2023年4月13日 16:03:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76003051.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定