-
Notifications
You must be signed in to change notification settings - Fork 75
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
Win NAT locking port 3000 stops "yarn dev" command running successfully #1486
Comments
Great to hear that you've found a workaround! I've found a related next.js discussion here vercel/next.js#24536 Anything we can do on the GraphCommerce side to help with this issue? |
Thanks for the quick reply. Hmmm...I appreciate there's a lot of variable edge cases it would be impractical for you guys to handle in the quick-start guide. Perhaps add it to the troubleshooting build errors? Obviously I understand you might consider this uncommon. Ross |
In my opinion, having this available here is already valuable and might help the next person encountering it. @rossparachute Do you know if it only happens once, or happens every time you reboot or something like that? If someone runs into this issue, please leave a comment. Also check if there isn't another process running on port 3000: https://stackoverflow.com/a/67577618/621617 |
Here is a perfectly valid place for that info to be, more than fair! After running start/stop winnat commands I did end up restarting my machine as WSL lost its network connection. Once I'd restarted the WSL had an internet connection again but I was still able to boot the demo app just fine without the error repeating. I think the |
Provide environment information
v14.19.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
yarn dev
Describe the Bug
This bug report contains a fix that may help others who run into the same issue.
When booting the GraphCommerce demo app from a clean pull of the repo a required listener on port 3000 cannot be subscribed to. This appears to be due to the Windows NAT programme locking port 3000.
Fix
Stopping and restarting the Win NAT service appears to resolve the issue.
Then run:
yarn dev
Error Output
Running the "yarn dev" command from the root dir of the GraphCommerce demo project results in the below output:
Expected Behavior
The GraphCommerce app demo boots with a homepage accessible via:
http://localhost:3000/
To Reproduce
Download the example
Edit /package.json. Delete "scripts": {...} and rename scripts_local to scripts.
Start the development environment
yarn
- Install the dependenciesyarn codegen
- Converts all .graphql files to typescript filesyarn dev
- Run the apphttps://www.graphcommerce.org/docs/getting-started/create#step-1-create-a-new-graphcommerce-app
The text was updated successfully, but these errors were encountered: