-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Pages show 500 error on Vercel, on Netlify they work #33459
Comments
@balazsorban44 Hi there, yes, the deployment is using the main branch that has and created new deployment on the Vercel and look at this: it doesn't work |
I fixed that now, so sorry about that. I tested it on local and it works now, and Vercel link doesn't work, and this is the same deployment on the Netlify https://awesome-goldstine-3aa7ed.netlify.app/ and it works |
Still getting errors locally: This is most likely due to my missing Make sure you gracefully handle all possible fetch errors in your code. Otherwise, your reproduction still needs some tweaking. Unless I can verify it working correctly locally, I cannot decide if the error is actually with Vercel. |
|
I found the issue. You tried to import types in .js files in multiple places. Here is an example: https://github.com/PH4NTOMiki/nextjs-test-app-vercel-bug/blob/bfd44e7cc4e28dadcd9ea80c88cb38c9acb976f2/pages/index.js#L7 You have two options here:
|
@balazsorban44 I try to fix it by doing the replacements you told me, and it works now, actually I think I've figured the reason it works for me locally and on Netlify, it's because I use Anyway thanks for helping me out |
I don't think it's Node.js related. They probably do their own tracing. We ignore tracing next.js/packages/next/build/webpack/plugins/next-trace-entrypoints-plugin.ts Lines 20 to 23 in 1d4f364
|
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Run
next info
(available from version 12.0.8 and up)What version of Next.js are you using?
12.0.8
What version of Node.js are you using?
17.2.0
What browser are you using?
Edge
What operating system are you using?
Linux Manjaro
How are you deploying your application?
Vercel
Describe the Bug
The repo when deployed to Vercel does 500 errors,
the same repo when deployed to the Netlify works without any issue.
But when I add
outputFileTracing: false
tonext.config.js
it worksAnd i think this is related to #30484 although in that issue is says it's been solved in the version 12.0.8 but I'm using it and it looks like it's not
Expected Behavior
Working pages on Vercel, like they work on Netlify
To Reproduce
https://github.com/PH4NTOMiki/nextjs-test-app-vercel-bug
The text was updated successfully, but these errors were encountered: