Question

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?

Thanks.


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.

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

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!

Best,

Bobby