question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to load script make sure you are either running a metro server .... ( fresh project😑 )

See original GitHub issue

React Native version:

info Fetching system and libraries information...
System:
    OS: Windows 10
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 4.89 GB / 15.95 GB
  Binaries:
    Node: 13.1.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.12.1 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    Android Studio: Version  3.4.0.0 AI-183.6156.11.34.5692245
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.4 => 0.61.4

Steps To Reproduce

  1. as the documentaion said 😃 npx react-native init AwesomeProject then i got
 Run instructions for Android:
    • Have an Android emulator running (quickest way to get started), or a device connected.
    • cd C:\Users\xxx\Desktop\AwesomeProject && npx react-native run-android

so my second command was cd C:\Users\bader\Desktop\AwesomeProject && npx react-native run-android

it start building until it finished then unable to load script make sure you are either running a metro server run react-native start

since 3 years until today, whenEver i decide to learn react native I got such silly bugs, because of that i kept leaving it behind and learn something else . come on, if the initial installation process has an issue , then how the code itself is going to be ? my friends are working on mac and they told me they have no issue there, unless they use windows !!! i was following each step in the documentaion, so everything should be fine as usual

installation process that i did are same as the fucking documentaion said

image

image

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Juan-Castellicommented, Nov 19, 2019

Same happens following exact same steps but using TypeScript template. There is a way to solve for both though, temporarily.

Go to your root folder of the project > node_modules > metro-config >src > defaults >blacklist.js.

Open said file (VS Code, etc) and on the top you will see a var called SharedBlacklist. Change that var from what it is to what my attached txt says, which I got from GitHub also but can’t find from whom to give credit.

It works like normal with that fix.

blacklist.txt

It is a fairly critical bug considering it appears on a clean project, hope it gets fixed soon.

2reactions
cpojercommented, Jan 8, 2020

Thank you for your report. We fixed this just now with the release of Metro 0.56.4 and 0.57.0. Update your packages and re-create your project and things should work for you again 😃 Sorry for the inconvenience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load script.Make sure you are either running a ...
The message is as follows: Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is ......
Read more >
Unable to load script. Make sure you're either running a Metro ...
Make sure you 're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release. #27157....
Read more >
Unable to load script. Make sure you're either ... - full stack oasis
TL;DR: run npm start in your project root to avoid this error! I'm using Ubuntu 16.04 and Android, YMMV. In teaching myself React,...
Read more >
Unable to load script.Make sure you are either ... - SyntaxFix
Make sure you are either running a Metro server or that your bundle ... start in the root directory of your project before...
Read more >
Mr. Robot – Eps1.0_hellofriend.mov - Genius
ELLIOT: You'd tell your sys admin to take your servers down, wipe all the data. Elliot stands, putting his oversized bookbag on. ELLIOT:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found