import LicenseInfo from '@mui/x-data-grid-premium'; // or pro // Disable license warning (only if you're 100% sure you're using free features only) LicenseInfo.setLicenseKey('');
import LicenseInfo from '@mui/x-data-grid-premium'; LicenseInfo.setLicenseKey(process.env.REACT_APP_MUI_LICENSE_KEY || ''); mui x missing license key remove
If you're seeing a error in MUI X (Data Grid, Date Pickers, Charts, Tree View, etc.), it means youβre using a premium MUI X component without a proper commercial license. Using MUI X Pro or Premium (with a
Then in .env :
β οΈ if you actually use premium features. 2. Using MUI X Pro or Premium (with a valid license) β Add your license key correctly: import LicenseInfo from '@mui/x-data-grid-pro'; LicenseInfo.setLicenseKey('your-license-key-here'); Place this (e.g.
Place this (e.g., in index.js or App.js ). 3. Remove the Watermark Without a License (Trial/Dev only) If you're just developing locally and want to hide the watermark temporarily: