-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[x-license] Multiple version support #15998
Comments
When debugging the licenseInfo object you can see that although we set it with key "62...", when it tries to get the key for verification it gets a weird key of "65...." |
for now rolling back to "@mui/x-data-grid-pro": "5.17.5" works. |
Thanks for opening a Zendesk ticket, I propose we continue this thread there https://mui.zendesk.com/agent/tickets/24626, until we find if there is a root cause or not in the code. We will report the solution here for future developers, to continue to build up a knowledge base. Off-topic. Fun observation on this:
This is bound to fail, one day or another. It won't work if a developer uses two versions of an MUI X component because he's migrating from one to another or adding a new one while not migrating an old one and we changed the way the license key structure (needed one day or another). We only have a few options:
mui-x/packages/x-charts-pro/package.json Line 47 in 758d8b8
Hence why we are on 1. Now, we could make changes to make it work is:
|
This is indeed the current state. We started with the grid and never trully removed the singleton. |
I believe mui-x/packages/x-license/src/useLicenseVerifier/useLicenseVerifier.test.tsx Lines 74 to 76 in a5f4a73
Jan added it for Toolpad's needs, so we never documented it. |
It's a exposed as unstable. I'm not sure it would help here though. The React context is hosted in a separate package than the component. So people needs to install multiple versions of the license package, which seems hard to figure out which version to install. |
Or we would need to have all the package the person use be compatible with a shared version of the license package. I have a side question that I think is related: how do we want to version the license package once we have a MUI X package (that will be in v9, v10 etc...) and a Base UI X package (that will be in v1, v2, etc... if I understand correctly). If we need to decouple the version of the license package with the version of the commercial product packages, then maybe we should just avoid BCs at all cost on it. Not saying that it's ideal of course 😬 |
I think it should be a singular package, from the
|
I agree with you In which case, this package won't automatically have its major version synchronized with the MUI X and Base UI X commercial packages. This does not solve our pain point automatically of course. To do that we would need to make sure I'm not a fan of introducing a new version synchronization topic but I don't see how to avoid it 😬 |
The problem in depth
Hello, we renewed our license for MUI X, we got a new key “624ef......”, when I update our mui x data grid pro
we get a placeholder of “MUI X: License key expired” when we use the components.
previously we used
@mui/[email protected]
and I did an upgrade to "@mui/x-data-grid-pro": "^5.15.0".when I upgrade to the latest I get "MUI X: Expired package version",
I've tried setting the license using "@mui/x-license" and also "@mui/x-license-pro" which did not work.
Your environment
No response
Search keywords: License key expired
Order ID: 103279
Context
https://mui.zendesk.com/agent/tickets/24626
The text was updated successfully, but these errors were encountered: