-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapping MUI components with styled not working in pigment with vite after version 0.0.20 #352
Comments
Have you configured the theme correctly in your vite config. |
Hi @brijeshb42 So do I always have to define a theme when working like that (wrapping MUI components with styled) with pigment? Another unrelated question... Thanks |
Yes. You'll have to provide the theme as per the current implementation. Maybe we can improvde this experience by using the default theme when none is provided.
It is not recommended while its in |
Do you have a rough estimation of when v1 will be released? |
We are targetting by March end. |
@brijeshb42 Thanks !! I really appreciate your help 🙏 |
Steps to reproduce
Steps:
yarn create vite vite-app --template react-ts
(vite v5 or v6, yarn v1)@pigment-css/react
,pigment-css/vite-plugin
and@mui/material
v6Current behavior
When using @pigment-css/react and pigment-css/vite-plugin after version 0.0.20 I get the a lot of errors like:
Internal server error: node_modules/@mui/material/Tooltip/Tooltip.js Cannot read properties of undefined (reading 'vars')
Internal server error: /node_modules/@mui/material/Typography/Typography.js: Cannot read properties of undefined (reading 'typography')
Expected behavior
Latest versions (currently from 0.0.21 - 0.0.28) should work like version 0.0.20 or earlier
Context
No response
Your environment
No response
Search keywords: pigment vite version 0.0.20
The text was updated successfully, but these errors were encountered: