when using `--host` flag on one project, local always opens on :3000
Opened this issue · 4 comments
Hi @pi0,
Hope you well
Came across an interesting bug, if you run a nuxt app pnpm run dev
, and run another nuxt app using pnpm run dev --host
, the local of the second app instead of incrementing by one to :3001 it also opens on :3000.
However, when running the first app using pnpm run dev --host
and then second app same command with same --host
flag it increments the port correctly.
Using latest version of nuxt on both.
Thanks for your work!
Thoughts?
@pio, think i have found the issue - it is in the _tryPort
function in the get-port-please
lib.
Think we need to either add a flag in this lib that when network --host then make sure that port is available on both or give diffrent ports
dont think it is an issue with listhen..
Thoughts?
@pi0 @danielroe can someone help? Would really appreciate it - this has been so painful!
Any update on this?
Sorry for the late answer, did you try to reproduce the behaviour by only using get-port-please
?
If so, the best is to create an issue there