How to run Capacitor livereload on an NX Angular Monorepo Project?

The default ionic cap run android -l --external command does not work on a monorepo (following the tutorial from, it fails with

[ERROR] Sorry! ionic cap run can only be run in an Ionic project directory.
        
        If this is a project you'd like to integrate with Ionic, run ionic init.

It also does not work if I go to the app directory:

ionic cap run android -l --external
[ERROR] Error while getting Capacitor CLI version. Is Capacitor installed?

I can build and open the project with nx run my-app-name:cap --cmd 'run android' and adding the livereload flag there asks me to select a device.

But it just installs the app and do not keep any server open

Is this even possible?

I’m having a similar issue: the app starts in the emulator, but the command doesn’t stay running. Instead it quits and I get a “webpage not available” error in the app. Did you solve this issue?