Skip to content

Commit

Permalink
Upgrade examples
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Oct 21, 2022
1 parent f62bbf3 commit 2298a1d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/with-eslint/package.json
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"eslint": "^7.24.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-mdx/package.json
Expand Up @@ -10,7 +10,7 @@
"@mdx-js/react": "^1.6.18",
"@next/mdx": "^9.1.1",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
4 changes: 2 additions & 2 deletions examples/with-next-sass/package.json
Expand Up @@ -7,8 +7,8 @@
},
"dependencies": {
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "1.26.3"
}
}
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -574,7 +574,7 @@ export default async function getBaseWebpackConfig(
// Only error in first one compiler (client) once
if (isClient) {
if (!hasReactRoot) {
throw new Error('Next.js requires React 18 to be installed.')
throw new Error('Next.js requires React 18.2.0 to be installed.')
}
}

Expand Down

0 comments on commit 2298a1d

Please sign in to comment.