Testing Serverless function with Node18 fails

I created a sample serverless function using nodejs v18 runtime. When running the function, the output returns

Action version is not compatible and cannot be invoked.

If I use the nodejs v14 runtime, works correctly. I have 2 questions with this:

  • What could be happening with the v18 runtime.
  • Is node v16 supported?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Rodric Rabbah
DigitalOcean Employee
DigitalOcean Employee badge
August 17, 2022

Node v18 is supported now. We have not made node 16 available since it’s about to enter maintenance mode in October.

Bobby Iliev
Site Moderator
Site Moderator badge
July 5, 2022

Hi there,

Indeed you are correct, functions currently have five different runtimes, representing four different programming languages:

  • Go 1.17
  • Node.js 14
  • Node.js 14 with AWS Lambda compatibility
  • PHP 8
  • Python 3.9

You can also view the list of supported runtimes with doctl serverless status --languages.

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up