Unverified Commit f6d2aa09 authored by Steven's avatar Steven Committed by GitHub

fix: minimum node version 16.14.0 (#54331)

- Fixes https://github.com/vercel/next.js/issues/54269
- Related to https://github.com/vercel/next.js/pull/54285
parent ca278574
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"typescript": "5.1.6" "typescript": "5.1.6"
}, },
"engines": { "engines": {
"node": ">=16.8.0", "node": ">=16.14.0",
"pnpm": "8.6.11" "pnpm": "8.6.11"
}, },
"packageManager": "pnpm@8.6.11" "packageManager": "pnpm@8.6.11"
......
...@@ -34,7 +34,7 @@ pr: ...@@ -34,7 +34,7 @@ pr:
variables: variables:
PNPM_CACHE_FOLDER: $(Pipeline.Workspace)/.pnpm-store PNPM_CACHE_FOLDER: $(Pipeline.Workspace)/.pnpm-store
NEXT_TELEMETRY_DISABLED: '1' NEXT_TELEMETRY_DISABLED: '1'
node_16_version: ^16.8.0 node_16_version: ^16.14.0
stages: stages:
- stage: Test - stage: Test
......
...@@ -10,7 +10,7 @@ related: ...@@ -10,7 +10,7 @@ related:
System Requirements: System Requirements:
- [Node.js 16.8](https://nodejs.org/) or later. - [Node.js 16.14](https://nodejs.org/) or later.
- macOS, Windows (including WSL), and Linux are supported. - macOS, Windows (including WSL), and Linux are supported.
## Automatic Installation ## Automatic Installation
......
...@@ -52,6 +52,6 @@ ...@@ -52,6 +52,6 @@
"validate-npm-package-name": "3.0.0" "validate-npm-package-name": "3.0.0"
}, },
"engines": { "engines": {
"node": ">=16.8.0" "node": ">=16.14.0"
} }
} }
...@@ -316,6 +316,6 @@ ...@@ -316,6 +316,6 @@
"ws": "8.2.3" "ws": "8.2.3"
}, },
"engines": { "engines": {
"node": ">=16.8.0" "node": ">=16.14.0"
} }
} }
...@@ -15,7 +15,7 @@ export const base = curry(function base( ...@@ -15,7 +15,7 @@ export const base = curry(function base(
: COMPILER_NAMES.client : COMPILER_NAMES.client
config.target = !ctx.targetWeb config.target = !ctx.targetWeb
? 'node16.8' // Same version defined in packages/next/package.json#engines ? 'node16.14' // Same version defined in packages/next/package.json#engines
: ctx.isEdgeRuntime : ctx.isEdgeRuntime
? ['web', 'es6'] ? ['web', 'es6']
: ['web', 'es5'] : ['web', 'es5']
......
...@@ -70,8 +70,9 @@ module.exports = function (task) { ...@@ -70,8 +70,9 @@ module.exports = function (task) {
}, },
env: { env: {
targets: { targets: {
// Same version defined in packages/next/package.json#engines // Ideally, should be same version defined in packages/next/package.json#engines
// Currently a few minors behind due to babel class transpiling // Currently a few minors behind due to babel class transpiling
// which fails "test/integration/mixed-ssg-serverprops-error/test/index.test.js"
node: '16.8.0', node: '16.8.0',
}, },
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"react-dom": "latest" "react-dom": "latest"
}, },
"engines": { "engines": {
"node": ">=16.8.0", "node": ">=16.14.0",
"pnpm": "8.6.11" "pnpm": "8.6.11"
}, },
"packageManager": "pnpm@8.6.11" "packageManager": "pnpm@8.6.11"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment