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

[Bug]: Live Reload functionality is not working #7801

Closed
1 of 3 tasks
Crim-oo opened this issue Dec 11, 2024 · 2 comments
Closed
1 of 3 tasks

[Bug]: Live Reload functionality is not working #7801

Crim-oo opened this issue Dec 11, 2024 · 2 comments
Labels

Comments

@Crim-oo
Copy link

Crim-oo commented Dec 11, 2024

Capacitor Version

Latest Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

Installed Dependencies:

@capacitor/ios: not installed
@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0

Other API Details

No response

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

The Live Reload functionality is not working when running a Nuxt.js project integrated with Ionic and Capacitor. The app tries to load http://localhost:3000/ but fails with a net::ERR_CONNECTION_REFUSED error, as shown in the screenshot below. Im aware that both pc and emulator needs to be on the same wifi to make it work.

image

Expected Behavior

It supposed to display app.vue and reflects my changes automatically without building and syncing every time.

Project Reproduction

https://github.com/Crim-oo/nuxt-test

Additional Information

No response

@Crim-oo Crim-oo added the triage label Dec 11, 2024
@Crim-oo Crim-oo closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
@Crim-oo Crim-oo reopened this Dec 11, 2024
@jcesarmobile
Copy link
Member

Since you don't provide steps to reproduce or the command you are running is hard to tell what you are doing wrong, but for being able to use localhost you should enable port forwarding with --forwardPorts option.
Otherwise you should be using the local IP of the dev server instead of localhost, as for Android emulator localhost is the own emulator and your live reload server is in your computer, so it's a "different" localhost and not reachable from the emulator.
For being able to use the local IP your server should be reachable from that IP, not all dev servers do it by default.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
Copy link

ionitron-bot bot commented Jan 10, 2025

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants