-
SummaryI made a preview deployment of a nextjs app, so my customers could test it during development. ExampleNo response Steps to ReproduceI wish that I knew how to replicate the problem, it seems like a normal nextjs app. 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 These are my dependencies: "dependencies": {
"@hookform/resolvers": "^3.4.0",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-popover": "^1.0.7",
"@react-email/head": "0.0.7",
"@react-email/html": "0.0.7",
"@react-email/tailwind": "0.0.14",
"@t3-oss/env-nextjs": "^0.7.3",
"@tanstack/react-query": "^5.36.2",
"@trpc/client": "11.0.0-rc.373",
"@trpc/react-query": "11.0.0-rc.373",
"@trpc/server": "11.0.0-rc.373",
"firebase": "^10.12.0",
"firebase-admin": "^11.11.1",
"js-cookie": "^3.0.5",
"next": "^14.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-firebase-hooks": "^5.1.1",
"react-hook-form": "^7.51.4",
"react-textarea-autosize": "^8.5.3",
"resend": "^3.2.0",
"server-only": "^0.0.1",
"superjson": "^2.2.1",
"usehooks-ts": "^3.1.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@firebase/rules-unit-testing": "^3.0.3",
"@types/eslint": "^8.56.10",
"@types/js-cookie": "^3.0.6",
"@types/node": "^18.19.33",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.19",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-next": "^13.5.6",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
}, |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 5 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.
-
I have the same issue on |
Beta Was this translation helpful? Give feedback.
-
I also had the same issue mentioned here, having |
Beta Was this translation helpful? Give feedback.
-
Same issue in my project, we are also using |
Beta Was this translation helpful? Give feedback.
-
Can you try Next.js v14.2.5 and let me know if it works for you? |
Beta Was this translation helpful? Give feedback.
-
Apparently, v14.2.7 fixed this issue. https://github.com/vercel/next.js/releases/tag/v14.2.7 The error does not occur even if I remove undici from my dependencies, since I updated to v14.2.7. |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
Apparently, v14.2.7 fixed this issue.
https://github.com/vercel/next.js/releases/tag/v14.2.7
The error does not occur even if I remove undici from my dependencies, since I updated to v14.2.7.