Replies: 144 comments 5 replies
-
Might help to eliminate if it's |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the exact same issue, after running |
Beta Was this translation helpful? Give feedback.
-
Same issue here |
Beta Was this translation helpful? Give feedback.
-
Likewise, same issue - seems intermittent and not tied to any particular change. It will work for a while, and then hang on the next change. Rerunning
(FWIW I'm not using TS, just plain old JS) |
Beta Was this translation helpful? Give feedback.
-
I've figured out a way to reproduce this a bit, will try to solve the issue. |
Beta Was this translation helpful? Give feedback.
-
This seems to happen on a project I work on as well. Usually starts taking a lot of memory and CPU as well. |
Beta Was this translation helpful? Give feedback.
-
Having trouble consistently reproducing it to investigate, if you run into it please provide steps to reproduce or a repository, I'd love to investigate further but I could only investigate it about 5 minutes while trying for 2 hours. |
Beta Was this translation helpful? Give feedback.
-
Hello I am facing the same problem too! My dependencies are as follows: Just for comparison, Gatsby's start script works extremely well on my computer (not sure if this is worth anything) Should I downgrade from 9.3.6 to a stable version? (This is my third month self learning coding so if I sound dumb I apologise) |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the exact same issue, even in the clean Next.js starter app ( To ReproduceRun System information
SolutionI am not sure, but it seems to work in my case. When I start server with different port (not the default |
Beta Was this translation helpful? Give feedback.
-
I ran into this problem as well, and it was caused by an old cached service worker. I cleaned the cache completely (under dev tools -> application in Chrome) and the problem was fixed. Not sure if your problem is due to the same cause. |
Beta Was this translation helpful? Give feedback.
-
I've been dealing with this issue for a long time. Latest nextjs, fresh install of macOS 10.15.4, it happens all the time, it's a PITA. The only thing that worked for me was @neupauer's solution, running dev server on another port (in my case 🎉 |
Beta Was this translation helpful? Give feedback.
-
@pablopunk have you tried cleaning out the cached service worker? That cache will be port-specific, so by changing the port you're working around the problem. Curious to see if this is the root cause for others or just for me. |
Beta Was this translation helpful? Give feedback.
-
@eandre I have and I think the issue came back eventually. Anyway, this is an issue on next.js and should be solved |
Beta Was this translation helpful? Give feedback.
-
Of course it should be solved! I'm just trying to help find the root cause. 🙂 |
Beta Was this translation helpful? Give feedback.
-
I'm having this issue with 'Vue' as well; so I wonder if it is not a next.js issue but a vercel dev issue |
Beta Was this translation helpful? Give feedback.
-
Thank you so much, was dealing with this bug for a weak. I think Next js should include a warning/error of some sort and close this issue. |
Beta Was this translation helpful? Give feedback.
-
i was having similar issue and i must say upgrading my node version to 18 didn't work, i even cleared cache still nothing what worked for me was renaming that component that was not responding to changes. My issue was coming from my signup component (i created a componet outside and passed it in my page.js `import React from 'react'; const page = () => { ); }; export default page; what i did was to change the name of the component (the Signin component was formally name Login) to the same name that the folder that acts as the route is bearing (which is Signin) |
Beta Was this translation helpful? Give feedback.
-
Changing dev port from 3000 to 3001 resolved my issue, so you should try as well |
Beta Was this translation helpful? Give feedback.
-
The point about Typescript, you are correct! |
Beta Was this translation helpful? Give feedback.
-
@SahilAggarwalHeliverse you are on point. seems like ts is the issue here. removed custom types and it started working fine. |
Beta Was this translation helpful? Give feedback.
-
same problem. Next compiles but no response is send to the browser. I tried deleting .next node_modules, changing the port, updating node but didn't help. Updating next from 13.4.19 to 13.5.4 solved the issue |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for this. This finally worked. This is the worst kind of error you want to have. There's no clue on the console or error thrown |
Beta Was this translation helpful? Give feedback.
-
One page stuck. It's using <Script> to load a canvas js library. Loads fine for a while, then stops and no console logs showing at all...and no error logs. Changed <Script> method from onLoad to onReady and that seems to work. Why server invokes onLoad only for a while I don't know. Maybe helps someone. Update: Scratch that. It was up longer but eventually stopped rendering this page anyway.
|
Beta Was this translation helpful? Give feedback.
-
👋 Hey folks. Wanted to summarize this issue. Some of you all are experiencing an issue where the Next.js development server gets stuck after a period of time, causing requests to fail or time out. It's tricky because the problem seems to occur intermittently and isn't clearly tied to any particular change or action. There's been reports across different operating systems and versions of Next.js. Solutions / workarounds suggested throughout this issue:
Note that not everyone has been able to resolve the issue, and there isn't a one-size-fits-all solution that works in all cases. I encourage everyone to keep sharing their experiences and any potential fixes they come across. And if you are still seeing an issue and can consistently reproduce, please post that reproduction so we can investigate. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I've had this issue multiple times, usually solution 5 works for me. Here's some solutions that worked for me on the occasions when solution 5 didn't:
|
Beta Was this translation helpful? Give feedback.
-
what about having same issue on production mode too? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! I will be moving this issue to our We still encourage folks to file bugs outside of this thread detailing the exact issue, with a Happy 2024! |
Beta Was this translation helpful? Give feedback.
-
It seemed to help to run |
Beta Was this translation helpful? Give feedback.
-
Does it happen like this for any of you? In my case, Next is stuck since starting it:
Whenever server gets stopped or I hit
And it gets stuck like that, from everywhere and for everyone. Console:
|
Beta Was this translation helpful? Give feedback.
-
I just faced this issue running Next.js 14 on macOS. |
Beta Was this translation helpful? Give feedback.
-
Bug report
Describe the bug
When I run my Next.js app with
now dev
, after a while (on the order of minutes, definitely less than an hour) my requests to it will stop working.To Reproduce
I'm not sure how to isolate this one. It happens all the time with this project https://github.com/mjm/courier-js but it's not an easy thing to get running for reproduction.
now dev
When I give up, I can hit Ctrl-C to try to kill the server, but if it's in this state, it can take a minute or two to actually get the message and quit.
Expected behavior
Continuing to make changes should keep working and trigger refreshes in the browser.
System information
Additional context
I feel like this could be TypeScript related, but I don't have any evidence. I'm on the latest release for that as well. I'm happy to try things that might help understand what's going on. The only thing I've seen in the log from
now dev
(ornext dev
I guess) is that it seems like when it gets in this state, it will stack up two or three "compiling ..." messages when there would otherwise be just one.Beta Was this translation helpful? Give feedback.
All reactions