Hi,
I created my app in Visual Studio code using npx create-expo-app AwesomeProject
.
When I start the application using npx expo start
and go to Expo Go, I can see my application and use it.
I tried to configure the debugger and ended up with a launch.json file like this :
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to packager",
"request": "attach",
"type": "reactnative",
"cwd": "${workspaceFolder}"
},
{
"name": "Debug in Exponent",
"request": "launch",
"type": "reactnative",
"cwd": "${workspaceFolder}",
"platform": "exponent",
"expoHostType": "local"
}
]
}
In Visual Studio Code ‘Run and Debug’ menu, I start the debug using ‘Debug in Exponent’ and when I scan the QR Code and try to debug the app in Expo Go I have an error saying ‘Uncaught Error: java.net.ConnectException: Failed to connect to /127.0.0.1:19001’
I tried to delete the .expo folder as suggested in some other posts but it didn’t work.