callstack / callstack/haul

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

Open
#687 1 comment 0 reactions 0 assignees View on GitHub
needs more info
Dominant language
TypeScript
Stars
3.7k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

## 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](https://user-images.githubusercontent.com/2377227/70779678-765d3380-1dbf-11ea-9af4-720425c8539b.png)

![image](https://user-images.githubusercontent.com/2377227/70780754-39de0780-1dc0-11ea-8a23-4c14ee27da7d.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.