You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the mui package versions to ~5.15 in package.json, it works and I see the defaultprop of contained on buttonbase applied.
if I set the muil package versions to ~5.16, I get the following error: Could not find module in path: '@mui/material/InitColorSchemeScript/InitColorSchemeScript' relative to '/node_modules/@mui/material/styles/CssVarsProvider.js'
Current behavior
an error happens if the app uses the latest release of mui and I can't apply defaultProps in the theme.
Expected behavior
using version 5.16.1 should function like 5.15.21
Context
I had my app set to ^5.15.21 which automatically used 5.16.1 when it was released and that broke my site. I have it locked to ~5.15 now but will need to upgrade at some point.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: defaultprops ignored
The text was updated successfully, but these errors were encountered:
@cvollmer From the link you provided, it works for me. Can you try v5.16.3 in your project?
If you have @mui/system explicitly installed, please update it to v5.16.3 too or delete it from the package.json because it is already a dependency of @mui/material.
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/react-mui-forked-r9hlwm
Steps:
~5.15
in package.json, it works and I see the defaultprop of contained on buttonbase applied.~5.16
, I get the following error:Could not find module in path: '@mui/material/InitColorSchemeScript/InitColorSchemeScript' relative to '/node_modules/@mui/material/styles/CssVarsProvider.js'
Current behavior
an error happens if the app uses the latest release of mui and I can't apply defaultProps in the theme.
Expected behavior
using version 5.16.1 should function like 5.15.21
Context
I had my app set to
^5.15.21
which automatically used5.16.1
when it was released and that broke my site. I have it locked to~5.15
now but will need to upgrade at some point.Your environment
npx @mui/envinfo
Search keywords: defaultprops ignored
The text was updated successfully, but these errors were encountered: