Replies: 6 comments 2 replies
-
I'm experiencing the same problem, which started after upgrading to "next": "14.2.3". In my case, the issue occurs whenever I try to access a page with a dynamic route directly, rather than navigating there from a previous page. For example, if I have a route like myapp.com/[slug]/home, and I navigate directly to "myapp.com/john-doe/home" by pasting the URL into the browser, I get the error: Additionally, this issue only occurs after deploying to Vercel from the CI; it does not happen locally. I'm not overriding the build command on Vercel, and I'm using Node 20.x. |
Beta Was this translation helpful? Give feedback.
-
Hey, have you been able to solve the problem, I'm also facing the same error during production deployment |
Beta Was this translation helpful? Give feedback.
-
Facing same issue on production, @nickBes have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue. It could be related to the firebase package. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I needed a quick solution, so I simply used @horiondreher's tip to downgrade Also in my case
|
Beta Was this translation helpful? Give feedback.
-
Summary
I made a preview deployment of a nextjs app, so my customers could test it during development.
Everything seems to work as expected, except that every time I visit a random page initially, by reloading or entering a URL in the browser, I get the page but with an 500 error code.
Example
No response
Steps to Reproduce
I wish that I knew how to replicate the problem, it seems like a normal nextjs app.
So I'll just attach everything that seems relevant.
Here is the environment on which the code runs:
That's how the logs look like:
The weird thing about this error is that sometimes the require stack starts with a different page file. For instance, when trying to access
/categories/[id]
, you'd expect that the stack trace would start with/var/task/.next/server/app/categories/[id]/page.js
, however it could start with/var/task/.next/server/app/cart/page.js
😕These are my dependencies:
Beta Was this translation helpful? Give feedback.
All reactions