-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Read css and cx from import { CacheProvider } from '@emotion/react' #6
Comments
The current code requires the cache to be provided ahead-of-time instead of reading it from the |
Ok, I understand, sorry for overseeing that. |
@Jack-Works, I submitted a PR to enable transparent support of custom cache. |
Cool thank you! |
The change have been approved. It should be merged soon. |
Sorry about the delay. I am releasing the feature as soon as the PR get merged on emotion |
@Jack-Works Everything should work now. Let me know if it isn't the case 😊 |
hi, @garronej I tried the latest version, it still not working and I got this:
I guess you should list @emotion/* packages as peer dependencies instead of direct dependencies? |
Oh @material-ui/styled-engine are using 11.4.0 and tss-react using 11.4.1, let me try to fix this in our lockfile |
Changed resolution to 11.4.1 but still getting this problem, I guess |
Ok,
This is surprise me a lot. As mentioned by @oliviertassinari here the problem is more complicated that it seems... I will sort this out and come back with a solution. |
Thanks! And I'm using pnpm workspace (that might affect the result) |
Can you release an experimental version with peers so that I can test it by myself |
Done, $ yarn add [email protected] @emotion/cache @emotion/react @emotion/serialize @emotion/utils Sorry I was eager to push this feature out of the door but it wasn't ready yet. |
Thanks! I have tried 0.6.0-beta.1, it fixes our problem! |
Thanks for reporting it working. |
Hi @Jack-Works, |
I've fixed this locally again by editing the lock file manually and playing around with |
I'm glad you fixed it but it bothers me. Not everyone will have the skill to hack the lock file like you did. |
Thanks, but I can't tell how did I fix this exactally, our project is open sourced on GitHub. I guess you may be interested in it. DimensionDev/Maskbook@294b23a is the bad commit and in DimensionDev/Maskbook@ec225ca I fixed it by only changing |
Our code heavily depends on custom cache, and we have multiple emotion caches in the whole application. It makes it impossible to provide our custom cache when calling
createMakeStyles
The text was updated successfully, but these errors were encountered: