ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.06k stars 1k forks source link

bug: Live Reload not working with Angular 17 and Vite #7113

Closed GuillaumeGascon closed 10 months ago

GuillaumeGascon commented 10 months ago

Bug Report

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

Android & Web (Not tested on iOS)

Current Behavior

when i run ionic capacitor run android -l --external and select my device, the app doesn't start on my device.

Expected Behavior

Tha app should show on my device

Code Reproduction

use @angular-devkit/build-angular:application as builder in angular.json, in capacitor.config.json change webDir to "webDir": "www/browser" and add "browser": "src/main.ts" in angular.json at architect -> build -> options

Other Technical Details

It was working fine when i was using the old builder

npm --version output: 9.5.1

node --version output: v18.16.0

jcesarmobile commented 10 months ago

This is a bug in Ionic CLI, not in Capacitor, it has already been reported in Ionic CLI repository and there is a PR that fixes the issue, but has not been merged nor released yet.

ionitron-bot[bot] commented 9 months ago

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.