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

Unable to load script. Make sure you're either running Metro #484

Closed
Juan2662 opened this issue Jan 2, 2024 · 3 comments
Closed

Unable to load script. Make sure you're either running Metro #484

Juan2662 opened this issue Jan 2, 2024 · 3 comments

Comments

@Juan2662
Copy link

Juan2662 commented Jan 2, 2024

Environment

Monorepo
react-native: 0.72.5
webpack: 5.89.0
@callstack/repack: 3.6.0

Description

I followed all steps here -> https://re-pack.netlify.app/docs/getting-started (using @callstack/repack-init)
When I try to run my android application I get this error
image

and I see this output in my terminal
image

Works fine for iOS, but for Android I'm getting this bug

Reproducible Demo

Create a new react native proyect and follow all steps here https://re-pack.netlify.app/docs/getting-started

@jbroma
Copy link
Member

jbroma commented Jan 8, 2024

Hi @Juan2662,

if it works fine on iOS and the problem is happening only on Android, I'm 99% sure it's because of Re.Pack server listening on IPv6 interface only. You can fix that by running the webpack-start command with additional option: --host 127.0.0.1.

This should resolve your issue on Android for now, we plan to fix it in 4.0.0

@Juan2662
Copy link
Author

Juan2662 commented Jan 8, 2024

Hi @jbroma Yes, that fix my issue, thank you!
When can we have 4.0.0 live ?

@jbroma
Copy link
Member

jbroma commented Jan 8, 2024

Soon 😁

@jbroma jbroma closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants