Skip to content

Commit

Permalink
Require React 19 beta during build
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 23, 2024
1 parent 05e6b82 commit f4d7166
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
'client'
)

if (parseInt(React.version) < 19) {
throw new Error('Next.js requires react >= 19.0.0 to be installed.')
if (React.version !== '19.0.0-rc-f994737d14-20240522') {
throw new Error(
`Next.js requires react 19.0.0-rc-f994737d14-20240522 to be installed. Got version '${React.version}' instead.`
)
}

export const babelIncludeRegexes: RegExp[] = [
Expand Down

0 comments on commit f4d7166

Please sign in to comment.