Skip to content

Commit

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

if (React.version !== '19.0.0-beta-4508873393-20240430') {
throw new Error('Next.js requires react 19.0.0-beta-4508873393-20240430 to be installed.')
if (parseInt(React.version) < 19) {
throw new Error('Next.js requires react >= 19.0.0 to be installed.')
}

export const babelIncludeRegexes: RegExp[] = [
Expand Down

0 comments on commit 5200e9f

Please sign in to comment.