Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I solve a NetworkError when attempting to debug a React Native application?

I am creating an Android React Native application and everything seems to be working fine except when I attempt to debug the program. When I attempt to do this, the app just becomes a blank white screen and the Chrome console has this error:

Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:8081/index.android.bundle?platform=android&dev=true' failed to load.

A few seconds later the app crashes. Does anyone have any idea how to solve this? I just started the project and I haven't really done that much yet so I don't know why this would be breaking

like image 901
reparadocs Avatar asked Sep 27 '22 09:09

reparadocs


1 Answers

The reason I've come across that error, is because I was running with chrome debugging enabled. Turning that off solved the error for me.

like image 123
Eadz Avatar answered Sep 28 '22 22:09

Eadz