material-ui: Building @mui/base breaks due to deprecated csstype.Property.ColorAdjust
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
When running ttsc -b I am seeing the following errors:
node_modules/@mui/base/SliderUnstyled/useSlider.d.ts:146:54 - error TS2694: Namespace '"/Users/william.pengc3.ai/Projects/c3vsce/c3vsce/extension/node_modules/csstype/index".Property' has no exported member 'ColorAdjust'.
146 colorAdjust?: import("csstype").Property.ColorAdjust | undefined;
~~~~~~~~~~~
node_modules/@mui/base/SliderUnstyled/useSlider.d.ts:651:65 - error TS2694: Namespace '"/Users/william.pengc3.ai/Projects/c3vsce/c3vsce/extension/node_modules/csstype/index".Property' has no exported member 'ColorAdjust'.
651 WebkitPrintColorAdjust?: import("csstype").Property.ColorAdjust | undefined;
~~~~~~~~~~~
Found 2 errors.
Looking into csstype I see that they released a new version today from MDN data, which does not have the color-adjust property anymore.
MDN docs also suggest that color-adjust is gone, as the page redirects instead to print-color-adjust.
The solution is probably to update import("csstype").Property.ColorAdjust to import("csstype").Property.PrintColorAdjust, but in any case, this is breaking our builds.
Expected behavior 🤔
No errors should be outputted
Steps to reproduce 🕹
Steps:
- Include @mui/base in dependencies
- Run
ttsc -b
Context 🔦
We are trying to build our project with ttsc -b which has an indirect dependency on @mui/base
Your environment 🌎
`npx @mui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 15
- Comments: 24 (1 by maintainers)
found a workaround and added
to the package.json, now it builds again
Yup, after upgrading
@mui/materialand@mui/icons-materialto^5.5.0the issues were resolved. Closing this issue as the upgraded versions have resolved this.@victor-grajski Seems like
@mui/x-data-gridhasn’t updated their libraries, probably should open an issue with them here: https://github.com/mui/mui-xFacing this issue on Vite Build too when running
npm run buildthat executestsc && vite build.Interestingly I cannot reproduce the same when using yarn as
yarn buildworks just fine.added
to the
package.jsonand removeyarn.lockandyarn install, the problem was resolved.I think I’m seeing those as well
MUI versions:
This works for me with @mui/base, but I’m still seeing this issue with @mui/x-data-grid. Anyone else experiencing that?
Those using npm instead of yarn may want to try this instead:
Unfortunately for me, this breaks other dependencies.