-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
package: styled-engineSpecific to @mui/styled-engineSpecific to @mui/styled-enginetype: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Steps to reproduce
Originally commented on #44105, but it's a different issue
Seeing issues in mui/toolpad#4257. @mui/[email protected] is not compatible with @mui/[email protected] even though the latter declares its dependency on @mui/styled-engine as ^6.1.1. Something similar is going on with @mui/utils. The result is that package managers may update transitive dependencies according to semver and break setups.
There's a workaround described in mui/toolpad#4257 that uses package manager resolutions.
Reproductions:
- reproduction for
internal_processStylesin Stackblitz - reproduction for
@mui/utils/getReactNodeRefin Stackblitz
Looks like it's caused by a set of breaking changes to internal APIs:
- Offending PR [system] Pre-serialize & cache styles to improve performance #43412 that removes the internal_processStyles in @mui/styled-engine.
- Offending PR [core] Improve getReactElementRef() utils #43022 that removes @mui/utils/getReactNodeRef
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: internal_processStyles
wilomgfx
Metadata
Metadata
Assignees
Labels
package: styled-engineSpecific to @mui/styled-engineSpecific to @mui/styled-enginetype: bugIt doesn't behave as expected.It doesn't behave as expected.