ionic-team / vscode-ionic

Visual Studio Code Ionic Extension
Other
5 stars 0 forks source link

BUG:ionic v1.85.1 (Live-reload) #138

Closed Droppix closed 1 month ago

Droppix commented 2 months ago

Hi,

The Live-reload option don't work (tested with Capacitor 6).

There's already a problem with the '--livereload' option instead of '--live-reload' but that's not enough, there's something else...

[Ionic] iPhone 13 de Robert iOS 17.4.1...
> npx ionic cap run ios --target=00008110-001609291A79801E  --livereload --external --no-sync
> npm run ionic:build
....
dtarnawsky commented 2 months ago

Hey @Droppix , --livereload is the correct option to run.

It looks like you have a script in your package.json called ionic:build which must customize how you build your application. This is likely the reason for the live reload not working. Typically the Ionic CLI will decide how to run your application and will include arguments like --host=0.0.0.0 to ensure that the dev server is running on an external port so that live reload works.

If you'd like some extra help on this I would need a sample app that has this problem or provide your source code. This way I can reproduce your issue and give you some guidance in customizing your build script to work with live reload.