Expo React Native调试器无法检测到兼容应用问题求助
React Native Expo项目调试器连接失败(已配置Hermes但仍报错)
我是React Native新手,通过命令npx create-expo-app@latest hello-world --template blank基于Expo框架创建了一个hello-world项目。启动项目时执行npx expo start,之后输入j打开调试器,出现错误提示:
Debug: No compatible apps connected. JavaScript Debugging can only be used with the Hermes engine.
我已经在app.json的expo节点下添加了"jsEngine": "hermes",同时在android节点也配置了该参数,但问题依然存在。尝试将localhost:8081添加到chrome://inspect中,React调试器仍未显示;运行expo-doctor也未检测到任何问题。
我的系统是Linux Mint,先后尝试过Brave和Google Chrome浏览器,均无效。
以下是我的app.json内容:
{ "expo": { "jsEngine": "hermes", "name": "hello-world", "slug": "hello-world", "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "light", "splash": { "image": "./assets/splash.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, "ios": { "supportsTablet": true }, "android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#ffffff" }, "jsEngine": "hermes" }, "web": { "favicon": "./assets/favicon.png" } } }
内容的提问来源于stack exchange,提问作者degD
相关产品推荐
相关产品推荐

