Unhandled Runtime Error in v1.34.0 #1392
Replies: 10 comments
-
How does this error come up? Which page? |
Beta Was this translation helpful? Give feedback.
-
It happens to me on every page, in 1.35.0 as well, but after some more digging it seems there is more going on in my install, I'm still figuring out if the problems are related or not (running umami after build works, but when restarting Next can't find a build anymore, and needs to be rebuild). Will update when I find out more! |
Beta Was this translation helpful? Give feedback.
-
It might be a seperate issue, but I think there might be a bug with Next, as I can run |
Beta Was this translation helpful? Give feedback.
-
I'm also with this issue since 1.34, did a rollback to 1.33.1 and runs fine. I'm using Exactly the same happens, it says that cannot find .next and asks to build again. Sometimes it says that port 3002 is already in use and tries to use 3003, 3004, etc. Edit: Mine is running directly on Ubuntu 22.04, node v16.16.0 |
Beta Was this translation helpful? Give feedback.
-
So "script": {
"start": "next -p 8080"
} I'll keep digging to see what I can find about the latest versions of Next. |
Beta Was this translation helpful? Give feedback.
-
It's possible to pass arguments to NPM scripts defined in package.json by using the double hyphen and then arguments (see here), wouldn't that be an option to use for port and/or hostname? |
Beta Was this translation helpful? Give feedback.
-
I may be wrong, but I'm sure if it was that easy someone would have done it. Here is the original discussions about supporting And here in the docs https://nextjs.org/docs/api-reference/cli it says:
We went the custom script route and discussed here, https://stackoverflow.com/questions/70804091/using-env-file-to-specify-server-listening-port-of-the-next-js-server Are you hosting on Heroku or some place that uses dynamic ports? |
Beta Was this translation helpful? Give feedback.
-
I am not, it's a VPS I control, with about 15 processes using different ports. I did manage to find something, though:
And then running |
Beta Was this translation helpful? Give feedback.
-
I'm glad you were able to find a solution. However, it's not a universal one which is the problem. I don't understand why Next.js has to make this so difficult. |
Beta Was this translation helpful? Give feedback.
-
is this connected to the dashboard reloading in 1.36.1 in another ticket? i've just updated from 1.33.1 to 1.36.1 and need to roll back. how do i do that? |
Beta Was this translation helpful? Give feedback.
-
After upgrading to 1.34.0, the webapp is no longer accessible due to a runtime error.
(Build on the server, Debian 11, node v16.16.0)
The full stacktrace, as provided by Next.js:
Beta Was this translation helpful? Give feedback.
All reactions