-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
New NX project - NextJS connect ECONNREFUSED 127.0.0.1:4200 #17902
Comments
tried updating to the latest 16.5.0-beta.0 with my production workspace and it still occurs. only this time it will build and serve locally, however in less than 2 minutes it disconnects with the same error. |
Facing the same issue, does this have anything to do with this merge #17856 ? |
I solved the issue by adding, hostname value as 0.0.0.0 in the project.json
|
I just learned that NextJS doesn't even use the React version you install in your NPM lib when using the app directory. Next is the current lovechild of the front-end community, but that lib seriously breaks a lot of expected conventions. It seems that this hostname fix is more of a hack? It would nice to know what the real issue is under the hood. The last couple NextJS updates have also caused my project to run out of memory every 30m or so (in dev mode) |
This started happening to me after upgrading from 16.4.0 to nx 16.4.2 I run 4 next.js apps locally for dev, all with "nx serve" I also noticed a huge difference in the memory usage of each node process involved:
|
I am facing the same issue. Upgraded from 16.3.2 to 16.4.2 and now I can not serve my next.js application locally anymore. |
Same issue here, went from 16.3.2 to 16.4.2 and cannot develop locally on mac:
|
Got the same issue |
📉 Downgrade Nx version 🔀 Command: |
It might not be related, but I describe a similar memory resource issue here: #17395 |
Have same issue |
What version of Next is everyone using? These may be partially related:
I think the last one is the fix. Using node 16 works for me, but not node >16 |
I was and still am on next@13.4.7 and node@18.12.1, before and after upgrading |
Can you upgrade to the latest version of Nx? We just published Initially, we thought that having the defaulted Here is a repo of a fresh app: https://github.com/ndcunningham/issue-17902 |
Can you reference the PR associated with the revert? |
I'm on next@13.3.0 and node v18.14.1 |
I upgraded to 16.5.0 and the problem is gone. node processes no longer keep growing. |
Here is the PR for the revert: #17931 |
I am still seeing the same issue even after upgrading to the latest nx version- we are on nx@16.5.0 and next@13.4.8. Falling back to next@13.3.0 also doesn't seem to help. Node version is 18.16.1. Reverting to using Node 16 seems to fix it. |
You can try |
Thank you - I think we have found our issue now. We had the hostname in our Next.js project.json files set to 'localhost'. Removing this line from the project.json files seemed to fix the problem. |
Closing as I think the issue has been fixed. Thanks! |
trigger en la promesa que se hace en js |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
My nextjs applications are no longer being served locally. While waiting for the initial build to view application locally in the browser, after a minute or two I am presented with a "connect ECONNREFUSED" error.
Expected Behavior
To view my application locally without interruption.
GitHub Repo
No response
Steps to Reproduce
1a. React Stack -> NextJs Framework -> Integrated Monorepo -> Yes to App Router -> CSS Stylesheets -> No to cache
Nx Report
Failure Logs
Operating System
Additional Information
Updating the next package to the latest one doesn't help either. I suspect the issue lies with NX and not NextJS because after creating an initial application with just nextjs without the use of NX, it appears to works just fine.
The text was updated successfully, but these errors were encountered: