Skip to content

Commit

Permalink
Include received value in assertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 11, 2024
1 parent fb510bf commit 84f037d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join(
)

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.')
throw new Error(
`Next.js requires react 19.0.0-beta-4508873393-20240430 to be installed. Got version '${React.version}' instead.`
)
}

export const babelIncludeRegexes: RegExp[] = [
Expand Down

0 comments on commit 84f037d

Please sign in to comment.