Unable to load script. Make sure you`re either running a Metro server

Asked

Viewed 205 times

1

I am creating my first project with the Genymotion simulator. I can create the project by typing in the terminal:

react-native init

once created, I enter my project:

cd myproject

Now when running android to send to the simulator arises the problem. Well, when running on the terminal:

react-native run-android

it sends to the simulator, but the following error appears

inserir a descrição da imagem aqui

I typed in the command terminal

react-native start

and I realized that I’m making a mistake...

inserir a descrição da imagem aqui

Could someone help?

  • I recommend you use AVD(Android Virtual Device)

1 answer

1


This problem happens because in linux (at least not in mine either) the packer is not started automatically.

What you should do is open a new terminal tab in the same project path and run npm start.

With this tab running just run in another window: react-native run-android.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.