milliHQ/terraform-aws-next-js

Support for Node v16

anudit opened this issue · 4 comments

Could we upgrade @vercel/build-utils to 2.17.0 from 2.12.1 to support the new Node 16 runtime?

Running into the following error currently,
image

Hi, yes Node 16 runtime support is on the radar, but takes a few extra steps besides just upgrading the @vercel/build-utils dependecy:

Support for the Lambda runtime nodejs16.x is tracked here: #316

Oh, misinterpreted your issue.
You are asking for Node.js 16 support for the CLI not the nodejs16.x runtime 🙈

However I think setting the "engines": { "node": "14.x" } field in your package.json is the right solution here.
The CLI should still build fine with Node.js 16, but since we currently don't support the nodejs16.x runtime, it does not make sense to allow the creation of Lambdas with Node.js 16 as target.

This has been fixed in v0.13.0.