-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Server functions not working on Vercel on V. 12 #30601
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
Comments
Sorry, I see this might be related to the Sentry module. Will try to remove sentry and see if it works. |
Ok, my bad.. removing withSentryConfig from next.config.js fixed the issue. Closing now. |
Hi @CruelMoney I am also using Sentry and facing this issue. How is removing withSentryConfig fixing this? |
@CruelMoney @AkashRajpurohit Have you find a workaround to using sentry with Next 12? |
@ovidb add outputFileTracing: false to your next config |
The comment mentioned by @brentkirkland fixed for me as well @ovidb |
Linking to getsentry/sentry-javascript#4103 in case anyone searches for a canonical issue. |
4:30am 🕟 Thank you all for this thread, works for me too!! |
Thanks! disabling |
Just to say the upstream bug has been fixed and you all should consider updating sentry packages and reverting this workaround. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Uh oh!
There was an error while loading. Please reload this page.
What version of Next.js are you using?
12.0.1
What version of Node.js are you using?
14 with yarn workspaces
What browser are you using?
Firefox
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
After upgrading to v. 12.0.1 from 11, I'm seeing the following error on server-rendered pages or API endpoints:
It seems to be on all pages that use server functions - so static pages work.
Expected Behavior
To have all pages render without errors.
To Reproduce
Upgrade project from 11.1.3 to 12.0.1. Deploy to Vercel and attempt to load a page that uses
getServerSideProps
.The project works when building and running it locally.
The text was updated successfully, but these errors were encountered: