-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
No error when port is already in use in (macOS) #5605
Labels
Comments
Could you check if it's a duplicate of #5241 (comment)? |
@sodatea Thanks! It looks indeed similar to what you describe in that comment. It works on |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Vite normally starts the server in the next available port when the default one is already in use. However, this seems to fail in some circumstances when running on a Mac (intel, at least).
Reported originally in Shopify/hydrogen#155
Reproduction
Run
node -e 'require("http").createServer(function (req, res) {}).listen(3000);'
in a terminal and then start any Vite server in the same port. Vite will show the port is 3000 instead of the expected 3001 but it won't be able to serve anything.This, but run in on on macOS: https://stackblitz.com/edit/vitejs-vite-yhqcxn?file=package.json
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: