Skip to content

Commit 06d4da7

Browse files
committed
[x-license] improve v9 license key version mismatch error guidance
1 parent 687e3fa commit 06d4da7

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

docs/public/_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# should all be prefixed with x-
99

1010
/r/x-get-license https://mui.com/pricing/ 302
11+
/r/x-license-account https://mui.com/store/account/licenses/ 302
12+
/r/x-license-key-upgrade https://support.mui.com/hc/en-us/articles/26762005295516-How-can-I-generate-a-v9-license-key 302
1113
/r/x-license-eula https://mui.com/legal/mui-x-eula/ 302
1214
/r/x-license-annual https://mui.com/legal/mui-x-eula/#annual-license 302
1315
/r/x-license-trial https://mui.com/x/introduction/licensing/#evaluation-trial-licenses 302

packages/x-license/src/Watermark/Watermark.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ function Watermark(props: WatermarkProps) {
5757
}}
5858
>
5959
{getLicenseErrorMessage(licenseStatus.status)}
60+
{process.env.NODE_ENV !== 'production' && (
61+
<div style={{ fontSize: 12, letterSpacing: 1, marginTop: 8 }}>
62+
Open the browser console for details on how to resolve this.
63+
</div>
64+
)}
6065
</div>
6166
);
6267
}

packages/x-license/src/utils/licenseErrorMessageUtils.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ export function showLicenseKeyVersionMismatchError() {
6363
showError([
6464
'MUI X: License key version mismatch.',
6565
'',
66-
'The license key you are using is not compatible with the version of the MUI X packages installed.',
67-
'This happens when using a license key from a previous major version (e.g. a v8 license with v9 packages).',
66+
'The license key you are using was issued for an older major version of MUI X (e.g. a v8 license with v9 packages installed).',
67+
'Each major version uses a different license key format, so the key needs to be regenerated — your existing license is not lost.',
6868
'',
69-
'To resolve this, you can either get an new license key at https://mui.com/r/x-get-license or from your account profile at https://mui.com/store/account/licenses/, or downgrade to an older MUI X version that matches your current license key.',
69+
'To resolve this, you can either:',
70+
'- Generate a new key compatible with the installed version from your account at https://mui.com/r/x-license-account (free for existing customers, the new key inherits your current expiration date). More details at https://mui.com/r/x-license-key-upgrade.',
71+
'- Or downgrade the MUI X packages to the major version that matches your current license key.',
7072
]);
7173
}
7274

0 commit comments

Comments
 (0)