Skip to content

Commit

Permalink
feat: add help message for version check (#8774)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a authored Dec 20, 2024
1 parent 28abee8 commit 3129248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rspack/src/util/bindingVersionCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export const checkVersion = () => {

if (!isMatch) {
return (result = new Error(
`Unmatched version @rspack/core@${CORE_VERSION}, @rspack/binding@${BINDING_VERSION}, @rspack/binding-${platformArchAbi}@${ADDON_VERSION}`
"Unmatched version @rspack/core@${CORE_VERSION}, @rspack/binding@${BINDING_VERSION}, @rspack/binding-${platformArchAbi}@${ADDON_VERSION}.\n" +
"Rspack requires these versions to be the same or you may have installed the wrong version. Otherwise, rspack may not work properly."
));
}

Expand Down

0 comments on commit 3129248

Please sign in to comment.