From 12aaa3b311793fceb4b785de0af2963de0471667 Mon Sep 17 00:00:00 2001 From: Hana Date: Thu, 19 Dec 2024 16:24:21 +0800 Subject: [PATCH] feat: help message for version check --- packages/rspack/src/util/bindingVersionCheck.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rspack/src/util/bindingVersionCheck.ts b/packages/rspack/src/util/bindingVersionCheck.ts index a1ae11f19d6f..cd0cc4da0771 100644 --- a/packages/rspack/src/util/bindingVersionCheck.ts +++ b/packages/rspack/src/util/bindingVersionCheck.ts @@ -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." )); }