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
ZeeshanTamboli
changed the title
Using extended styles with styled-components breaks types
[styled-engine-sc] Using extended styles with styled-components breaks types
May 1, 2025
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
Link to live example: https://stackblitz.com/edit/vitejs-vite-afbuyz?file=src%2FApp.tsx&view=editor
Steps:
Current behavior
Expected behavior
The types are correct even if extended styles are used.
Context
The types change when using extended styles.
styled
extended
Your environment
npx @mui/envinfo
I used Chrome: 130.0.6723.70
tsc --showConfig
Search keywords: styled-engine-sc styled-components TypeScript
The text was updated successfully, but these errors were encountered: