9

After installing a package and running react-native link. I get the following error message in the logs of exp start when I try to launch the simulator on Xcode:

Failed building JavaScript bundle.

There's 0 additional information and my project runs but this errors show up in the terminal and the get the simulator stuck at 0%...

I have no idea how to fix this since I'm unable to get any additional error nor information, just this ****** error message.

8
  • 3
    I think it's a cache problem. try "rm -fr $TMPDIR/react-*" Commented Jan 15, 2018 at 16:17
  • 2
    @MarouenMhiri Thank you whoever you are you're the angel of my day. You saved me seriously I was in the process of remaking a new expo detach project and then I would have had to rewrite all my code etc... Anyways THANK YOU Commented Jan 15, 2018 at 16:48
  • 2
    Just a minor typo tho it's "rm -rf $TMPDIR/react-*" for anyone reading this later on. Commented Jan 15, 2018 at 17:07
  • 1
    glad this could help! and thx for the -rf :-) Commented Jan 15, 2018 at 19:43
  • 3
    exp start -c will work today (to clear cache) Commented Mar 5, 2018 at 12:54

2 Answers 2

3

Clearing the cache via expo start -c AND restarting the bundler by pressing R in the terminal as Hameed suggested helped in my case

Sign up to request clarification or add additional context in comments.

Comments

0

In my case I was trying to start an app on the Android emulator. Changing the connection mode to tunnel from LAN on the server console allowed the app to build.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.