Skip to content

Commit

Permalink
fixup! Extend support of Pages router to React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 23, 2024
1 parent c76c83a commit af03f33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sync-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ Or, run this command with no arguments to use the most recently published versio
await fsp.readFile(nextjsPackageJsonPath, 'utf-8')
)
nextjsPackageJson.peerDependencies.react = `^18.2.0 || ${newVersionStr}`
nextjsPackageJson.peerDependencies['react-dom'] = `^18.2.0 || ${newVersionStr}`
nextjsPackageJson.peerDependencies['react-dom'] =
`^18.2.0 || ${newVersionStr}`
await fsp.writeFile(
nextjsPackageJsonPath,
JSON.stringify(nextjsPackageJson, null, 2) +
Expand Down

0 comments on commit af03f33

Please sign in to comment.