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

Prod deployment issue. Invalid runtime error #150

Closed
abcd-ca opened this issue Mar 27, 2024 · 3 comments
Closed

Prod deployment issue. Invalid runtime error #150

abcd-ca opened this issue Mar 27, 2024 · 3 comments

Comments

@abcd-ca
Copy link
Contributor

abcd-ca commented Mar 27, 2024

I have my project working locally (running with vercel dev but when I deploy (vercel --prod), the build gets stuck here:

Error: The following Serverless Functions contain an invalid "runtime":
  - api/calendar/event/[id] (provided)
  - api/calendar/event (provided). Learn More: https://vercel.com/guides/serverless-function-contains-invalid-runtime-error

Any insight would be appreciated.

@DervexDev
Copy link

Same problem here

@DervexDev
Copy link

Figured it out. You have to downgrade your project's Node.js version from 20.x to 18.x.

@abcd-ca
Copy link
Contributor Author

abcd-ca commented Apr 1, 2024

@DervexDev Ah, good one for figuring that out! I'm going to create a documentation PR. I'll credit you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants