Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CentOS 7] Haul did not compile bundle after run-android and the app on emulator saying "Unable to load script..." #687

Open
szalansun opened this issue Dec 13, 2019 · 1 comment

Comments

@szalansun
Copy link

szalansun commented Dec 13, 2019

Environment

CentOS7
Android Studio AVD
"@haul-bundler/babel-preset-react-native": "^0.15.0",
"@haul-bundler/cli": "^0.15.0",
"@haul-bundler/preset-0.60": "^0.15.0",
"react": "16.9.0",
"react-native": "0.61.4",

Description

Have the some code and works well in Windows 10, but in CentOS, the haul progress is pending forever and did not start compiling bundle (hung on IDLE status) after the "react-native run-android" is successfully executed and the app show up on emulator, but with a red screen saying "Unable to load script. Please make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release."

I have confirm the port 8081 is not occupied and try use other port number still did not work.

image

image

@szalansun szalansun changed the title Haul did not compile bundle after run-android and the app on emulator saying "Unable to load script..." [CentOS 7] Haul did not compile bundle after run-android and the app on emulator saying "Unable to load script..." Dec 13, 2019
@zamotany
Copy link
Contributor

Hey @szalansun, thanks for opening the issue. I'll look into it in spare time. To me it looks like the app cannot download the bundle from Haul. Usually this is caused by networking problem. You can try using 0.0.0.0 as a server.host option in haul.config.js as noted in here: https://github.com/callstack/haul/blob/master/docs/Configuration.md#project-configuration-reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants