Skip to content
Discussion options

You must be logged in to vote

This confirms that the bundle itself is correct. It is probably 18950956 bytes, as expected.

This points conclusively to a bug in React Native when loading the bundle. 0.75 is pretty old, so this doesn't surprise me. This is most likely caused by RN incorrectly stripping the last byte of the "bad" bundle, because it happens to be zero.

You can verify this by inspecting the last byte:

xxd -p -s -1 -l 1 main.jsbundle

An easy workaround is to append something non zero to the end:

echo -n " " >> main.jsbundle

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@roni-castro-shipt
Comment options

@tmikov
Comment options

tmikov Mar 20, 2025
Collaborator

@roni-castro-shipt
Comment options

@tmikov
Comment options

tmikov Mar 20, 2025
Collaborator

Answer selected by roni-castro-shipt
@roni-castro-shipt
Comment options

@roni-castro-shipt
Comment options

Comment options

You must be logged in to vote
1 reply
@roni-castro-shipt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants