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

Deploy to vercel #62

Open
kamalkech opened this issue Jul 24, 2022 · 1 comment
Open

Deploy to vercel #62

kamalkech opened this issue Jul 24, 2022 · 1 comment

Comments

@kamalkech
Copy link

I get this error

Error: The Serverless Function "." has invalid runtime: "nodejs18.x". Learn More: https://github.com/vercel/vercel/blob/main/DEVELOPING_A_RUNTIME.md#lambdaruntime
@eltigerchino
Copy link

Hi kamalkech,

This might be due to your build being built with nodejs18 instead of nodejs16, which is the latest version Vercel supports. You can verify this by inspecting your build folder at .vercel/output/builds.json and checking the version of node pointed to in argv.

These are the steps I took to fix this:

  1. Force uninstall nodejs18 from my system (brew uninstall node --forced)
  2. Use nvm to select my current node version.
  3. Running where node only shows one path (the path to .nvm)
  4. Running node -v shows v16.x

Hope this helps :)

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