1

Problem: I am new to react-native and when I try to Run and Debug using the Attach to Packager configuration I get the following error:

An error occured while attaching debugger to the application.  Cannot attach to packager.  Are you sure there is a packager and it is runnig in the port 19001?  If your packager is configured to run in another port make sure to add that to the settings.json. (error code 504) (error code 1401)

Solutions attempted:

  • Attaching "Trace" to settings.json to verify i'm in a react-native project. Found here
  • Adding port, sourceMaps, and outDir to launch.json. Found here

Here is a screenshot of my settings/what I'm seeing: enter image description here

My environment is Ubuntu 20.04

0 Answers0