0plus1
0plus1

Reputation: 4555

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:

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!

Upvotes: 6

Views: 2770

Answers (2)

user3352495
user3352495

Reputation: 391

This is related to a known issue. You may have to run expo publish to generate these missing data. https://github.com/expo/expo/issues/1746

I recommend setting your project to unlisted before doing so.

Upvotes: 0

Cihan
Cihan

Reputation: 108

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

expo start -c

Upvotes: 6

Related Questions