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
When running ionic capacitor run android --livereload --external, I get an endless loop of [INFO] Waiting for connectivity with pnpm...
> pnpm run ionic:serve -- --host=0.0.0.0 --port=8100
[pnpm] > [email protected] ionic:serve /home/nato/Code/github.com/Omerlo-Technologies/theia-mobile
[pnpm] > vite dev "--" "--host=0.0.0.0" "--port=8100"
[pnpm] VITE v4.3.9 ready in 474 ms
[pnpm] ➜ Local: http://localhost:5173/
[pnpm] ➜ Network: use --host to expose
[pnpm] ➜ press h to show help
[INFO] Waiting for connectivity with pnpm...
[INFO] Waiting for connectivity with pnpm...
[INFO] Waiting for connectivity with pnpm...
The issue is that pnpm run ionic:serve -- --host=0.0.0.0 --port=8100 doesn't work as expected because of that -- in the middle. -- is useful when you want npm to pass additional command-line arguments to scripts, but pnpm isn't limited by this restriction and it passes the whole thing. When vite receives that, it ignores everything after it.
This can be tested:
❯ vite dev --host=0.0.0.0 --port=8100
VITE v4.3.9 ready in 527 ms
➜ Local: http://localhost:8100/
➜ Network: http://192.168.1.213:8100/
➜ Network: http://192.168.1.214:8100/
➜ press h to show help
❯ vite dev -- --host=0.0.0.0 --port=8100
VITE v4.3.9 ready in 519 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Description:
When running
ionic capacitor run android --livereload --external
, I get an endless loop of[INFO] Waiting for connectivity with pnpm...
The issue is that
pnpm run ionic:serve -- --host=0.0.0.0 --port=8100
doesn't work as expected because of that--
in the middle.--
is useful when you wantnpm
to pass additional command-line arguments to scripts, butpnpm
isn't limited by this restriction and it passes the whole thing. Whenvite
receives that, it ignores everything after it.This can be tested:
Steps to Reproduce:
package.json
pnpm dev:android
Output:
My
ionic info
:Other Information:
Admittedly, this could be seen as a
vite
issue, but I it's possible that they would consider rejecting everything after--
as a security benefit.The text was updated successfully, but these errors were encountered: