Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo start fails with "Unexpected end of JSON input" when attempting to run on android simulator

I have an expo app that, as soon as I launch on the android simulator, hangs at 99% Building Javascript Bundle and outputs in the console a very cryptic:

Unexpected end of JSON input

I have tried:

  • npm and yarn cache clear
  • npm and yarn audit fix
  • restart the simulator
  • rm -rf node_modules .expo .tmp

Nothing seems to work, furthermore that single line error I have no idea where it comes from!

Is there any way to get more verbose logs from the metro bundler?

It's driving me insane this issue.

Thanks!

like image 601
0plus1 Avatar asked Mar 13 '19 04:03

0plus1


1 Answers

clearing expo cache(start with -c flag) worked for me

expo start -c
like image 135
Cihan Avatar answered Sep 22 '22 06:09

Cihan