Building @mui/base breaks due to deprecated csstype.Property.ColorAdjust
See original GitHub issueDuplicates
- 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.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:24 (1 by maintainers)
Top Results From Across the Web
MUI v5 DataGridの使い方 その7~有償版(Pro版)のエラー対応~
Building @mui/base breaks due to deprecated csstype.Property.ColorAdjust · Issue #31296 · mui/materi. Duplicates I have searched the existing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
found a workaround and added
to the package.json, now it builds again
Yup, after upgrading
@mui/material
and@mui/icons-material
to^5.5.0
the issues were resolved. Closing this issue as the upgraded versions have resolved this.