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
First of all, I want to thank the author team for making such an amazing work!~
When I had a 5000 port service, vite preview did not detect the port occupation and executed the service as usual, but the service could not respond normally.
It took me a whole afternoon to find this problem. Later, I found that a function of MAC OS occupied port 5000, but Vite didn't give me the corresponding prompt, so I couldn't access Preview normally,
I am aware of this PR(#6300) and will be modifying ports 5000 to 4000, but I don't think this is a good solution to this problem. I am a newbie and I am sure there are many other newbies who have spent some time here as I have.
I try to use the "net" modules to check for port occupancy, and I find it works fine. But I can't say why. I would like to submit PR if possible.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
First of all, I want to thank the author team for making such an amazing work!~
When I had a 5000 port service,
vite preview
did not detect the port occupation and executed the service as usual, but the service could not respond normally.It took me a whole afternoon to find this problem. Later, I found that a function of MAC OS occupied port 5000, but Vite didn't give me the corresponding prompt, so I couldn't access Preview normally,
I am aware of this PR(#6300) and will be modifying ports 5000 to 4000, but I don't think this is a good solution to this problem. I am a newbie and I am sure there are many other newbies who have spent some time here as I have.
I try to use the "net" modules to check for port occupancy, and I find it works fine. But I can't say why. I would like to submit PR if possible.
Reproduction
https://github.com/dohooo/vite-reproduction
I think it should give me a corresponding prompt when I do
yarn preview
.System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: