-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hydrogen-cli ignoring --port argument, listening on random port #1264
Comments
Getting the same issue. The problem is has something to do with the usage of 'get-port' package. But oddly when I run get-port myself from a node REPL, it finds the port just fine. |
Hi, @frandiox, no there is nothing running on the port specified with |
Can you both try removing Otherwise, can you try creating a new project with |
I have tried to remove |
Alright, I was able to reproduce it with import getPort from 'get-port';
const p1 = await getPort({port: 3000});
const p2 = await getPort({port: p1});
console.log({p1, p2}); // {p1: 3000, p2: 62425} We are calling I guess PNPM is correctly surfacing this bug because it dedups dependencies. I've checked my For now, we can remove one of the calls. |
Thanks! |
What is the location of your example repository?
No response
Which package or tool is having this issue?
CLI
What version of that package or tool are you using?
5.2.0
What version of Remix are you using?
1.19.1
Steps to Reproduce
Run
shopify hydrogen dev
orshopify hydrogen preview
with a--port
argument or without for the default port (3000).Expected Behavior
The local mini oxygen server should start on a pre-defined default port or on the port specified with the
--port
argument.Actual Behavior
Both
shopify hydrogen dev
andshopify hydrogen preview
are ignoring the--port
argument and start a server on a random port no matter what. Tests timeout waiting for the server to start on the specified port.The text was updated successfully, but these errors were encountered: