Skip to content

Commit a027182

Browse files
committed
Include received value in assertion failure
1 parent 6fec764 commit a027182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
106106

107107
if (React.version !== '19.0.0-rc-81c5ff2e04-20240521') {
108108
throw new Error(
109-
'Next.js requires react 19.0.0-rc-81c5ff2e04-20240521 to be installed.'
109+
`Next.js requires react 19.0.0-rc-81c5ff2e04-20240521 to be installed. Got version '${React.version}' instead.`
110110
)
111111
}
112112

0 commit comments

Comments
 (0)