Skip to content

Commit f4d7166

Browse files
committed
Require React 19 beta during build
1 parent 05e6b82 commit f4d7166

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/next/src/build/webpack-config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
104104
'client'
105105
)
106106

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

111113
export const babelIncludeRegexes: RegExp[] = [

0 commit comments

Comments
 (0)