Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Add support for Node 16 (LTS) #199

Closed
wants to merge 1 commit into from

Conversation

marcofranssen
Copy link

No description provided.

@vercel
Copy link

vercel bot commented Mar 11, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/og-image/DMa5qoBKz89XVguUZ7vS74cEb6e3
✅ Preview: https://og-image-git-fork-marcofranssen-support-node16.vercel.sh

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be deployed with 14.x at this time since chrome-aws-lambda doesn't support 16.x

See the upstream PR alixaxel/chrome-aws-lambda#274

@marcofranssen
Copy link
Author

On my local environment I'm able to run it with Node 16, is there a way to support this locally with Node 16, but still enforce Node 14 for the AWS parts?

@styfle
Copy link
Member

styfle commented Mar 14, 2022

If its working fine locally, why does the config need to change?

@marcofranssen
Copy link
Author

If its working fine locally, why does the config need to change?

Otherwise it just errors with a message Node 14 is required.

@styfle
Copy link
Member

styfle commented Mar 17, 2022

What is the error? Can you use --ignore-engines flag?

@marcofranssen
Copy link
Author

marcofranssen commented Mar 30, 2022

What is the error? Can you use --ignore-engines flag?

See below the error and tryout of --ignore-engines.

$ yarn build --ignore-engines
yarn run v1.22.18
error @: The engine "node" is incompatible with this module. Expected version "14.x". Got "16.14.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ vercel dev --ignore-engines
Vercel CLI 24.0.0
Error! unknown or unexpected option: --ignore-engines
$ vercel dev
Vercel CLI 24.0.0
> Creating initial build
Running "yarn run build"
yarn run v1.22.18
error @: The engine "node" is incompatible with this module. Expected version "14.x". Got "16.14.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error! Command "yarn run build" exited with 1

@styfle
Copy link
Member

styfle commented Mar 30, 2022

It works with yarn --ignore-engines build

@marcofranssen
Copy link
Author

Is it OK to add that as a fix in this PR? Otherwise I'm still stuck with the fact I can't use it out of the box.

I either have to change the supported node version or I have to change this build script.

@marcofranssen
Copy link
Author

marcofranssen commented Oct 11, 2022 via email

@styfle
Copy link
Member

styfle commented Jan 20, 2023

Closing in favor of #226

@styfle styfle closed this Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants