Skip to content

Commit 3129248

Browse files
authored
feat: add help message for version check (#8774)
1 parent 28abee8 commit 3129248

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rspack/src/util/bindingVersionCheck.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ export const checkVersion = () => {
133133

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

0 commit comments

Comments
 (0)