Skip to content

Commit

Permalink
feat: help message for version check
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Dec 19, 2024
1 parent 22f3bb0 commit 12aaa3b
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 12aaa3b

Please sign in to comment.