Skip to content
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

Error: undefinedVercel CLI 31.0.1 #367

Open
wottpal opened this issue Jul 9, 2023 · 6 comments
Open

Error: undefinedVercel CLI 31.0.1 #367

wottpal opened this issue Jul 9, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@wottpal
Copy link

wottpal commented Jul 9, 2023

Recently, we started getting this more occasionally (sometimes it works, sometimes it doesn't).

Screenshot 2023-07-09 at 09 57 56
@wottpal wottpal added the bug Something isn't working label Jul 9, 2023
@evereq
Copy link

evereq commented Jul 14, 2023

Same issue: https://github.com/ever-co/ever-teams/actions/runs/5558865924/jobs/10154407173#step:6:17

UPDATE: we solved it by disabling the Build Cache in Vercel, see https://vercel.com/docs/concepts/deployments/troubleshoot-a-build#managing-build-cache. More specifically in the Vercel environment vars we added VERCEL_FORCE_NO_BUILD_CACHE and set it to 1.

@MartinLupa
Copy link

Same issue: https://github.com/ever-co/ever-teams/actions/runs/5558865924/jobs/10154407173#step:6:17

UPDATE: we solved it by disabling the Build Cache in Vercel, see https://vercel.com/docs/concepts/deployments/troubleshoot-a-build#managing-build-cache. More specifically in the Vercel environment vars we added VERCEL_FORCE_NO_BUILD_CACHE and set it to 1.

Could you confirm if this environment variable could be set via the BUILD_ENV or have you set it directly in Vercel?

@evereq
Copy link

evereq commented Jul 28, 2023

@MartinLupa we set it directly in Vercel via UI

@MartinLupa
Copy link

This issue suddenly appeared again in our project, even after setting the mentioned environment variable. Is there any update on the possible solutions?

@wottpal
Copy link
Author

wottpal commented Oct 15, 2023

@MartinLupa Yeah environment variable & making sure the committer's git identity email is set in his github profile should help.

@psychobolt
Copy link

psychobolt commented Jan 26, 2024

I have FORCE: true set, this will avoid using build cache as well, however I think the main issue for me is manually running npx vercel build with the deploy action PREBUILT variable enabled. If the version of CLI is out of sync (build using latest, deploy using a older release), the undefined issue occur for next.js apps. Svelte apps seem to work ok. So I globally install vercel@latest, my workflow will use the same vercel CLI version for vercel build and deploy action. No more undefined issues for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants