-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Serverless function module loading broken in v32.3.0 #10564
Comments
I have the same problem , the before deploys with 32.2.5 , does not have this problem |
Yep, can confirm. I sure wish I could have the last hour and a half back trying to figure out how I broke everything 😅 Homepage was throwing a 500 with this in the logs: 2023-09-21T23:12:49.729Z undefined INFO - info Loaded env from /var/task/.env |
@flynow10 wow, thank you so much for the prompt share of this! Tonight, I planned to sit on the computer for a 15 minutes and fix a few typos on my site. Only to have it break after the deploy and 3 hours later finally having it running again thanks to this thread! |
Wow thanks so much for the fix also have been dealing with this for a while |
This was a great fix for us too, thanks. Was a shock for a little while 💀 |
Thanks. Great work for finding the issue and providing a quick workaround. |
Spent 2 hours removing piece by piece what I did today... and even with a full revert, crashed. Only one option. The building tool is crashing it or something. Thanks @flynow10 for the help!! |
I confirm the error. 500: Internal server error. Happens only on direct refresh (typing URL directly into the address bar - SSR), not on client reload (when clicking on a link within the application - CSR) and only in production. I did try to isolate it by creating completely minimal |
I can confirm everything @optimista has said - only happening on directly browsed pages, and doesn't happen locally. |
cc @leerob could you, please, take a look? |
My team are experiencing the same issue with 32.3.0. Pinning to to 32.2.5 has worked as a temporary solution |
Thank you for sharing this problem and the workaround, @flynow10! The issue has been fixed in Any deployments using Next.js v13.4.3-v13.5.1 made between 2023-09-21 20:33 UTC and 2023-09-22 09:53 UTC could have seen elevated serverless function errors. Redeploying affected projects should solve the problem! We strive for changes to |
There was an incident with the latest Vercel CLI release that affected some customer deployments. Please follow our status page for the latest updates: |
Thank you for getting this resolved quickly! |
node: 18.x
vercel cli: 32.3.0
compiler: typescript
When I created a new deployment today, all of my Serverless functions were crashing while trying to import various node modules. I found that even after redeploying a working deployment, the Serverless functions would still crash.
I believe the problem lies in this pull request #10553, but I don't know the internals of Vercel well enough to diagnose this further.
If anyone else is having this problem, I have found work around by including the env var "VERCEL_CLI_VERSION"="vercel@32.2.5". Be aware that you will need to remove this variable to resume receiving updates from Vercel once this is fixed.
The text was updated successfully, but these errors were encountered: