You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
Expected Behavior
It supposed to display app.vue and reflects my changes automatically without building and syncing every time.
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.
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.
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
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.
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
The text was updated successfully, but these errors were encountered: