So I’m following along Mosh’s React native course and I’m having the error with the message in the title. And it seems a lot of other people all over the web are having the same error I am.
My configuration is the following:
“version”: “0.2.0”,
“configurations”: [
    {
        "name": "Debug Android",
        "cwd": "${workspaceFolder}",
        "type": "reactnative",
        "request": "launch",
        "platform": "android"
    },
    {
        "name": "Attach to packager",
        "cwd": "${workspaceFolder}",
        "type": "reactnative",
        "request": "attach",
        "sourceMaps": true,
        "port": 19000
    }
]
The only change I made is adding port to the second one. I asked and followed the steps given by Copilot I;ll log them here:
- Ensure the packager is running. I’ve used both commands npm start and expo start.
- check the Debugger Configuration. Done see above
- Check for port conflicts. Done using netstat in PowerShell. Port 19000 is free
- Update dependencies. Done with npm install since I’m on Windows 11
- clear cache, Done with expo start -c
Since all of these troubleshooting steps have been done I wonder if the problem is with the extension, React native Tools. Maybe there is a bug with it and the best approach is to use something else for debugging.
