-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
@emotion/[email protected] does not support nested component pseudo selectors? #2354
Comments
hm, saw this #1768 (comment) |
the "real" example i have is in a more complicated razzle setup; i'll make some to recreating it |
Codesandbox doesn't support Babel configuration out of the box, since that React template is CRA-based. You can, however, use our macro variant there (which is basically a way to use our Babel plugin in such config-constrained environments): As you may notice - everything works OK so if something doesn't work on your side then it has to be a tooling issue on your end. |
Whenever I try to use the macro variant, I get this horrible error:
I deleted and reinstalled my node_modules but nothing happened. |
Andarist 's another demo work for me, NO NEED @emotion/styled/macro Andarist, many many thanks your hard work |
I am also experiencing this issue and it is preventing my migration from styled-components. I use only TypeScript and do not want to involve Babel, adding |
Current behavior:
To reproduce: https://codesandbox.io/s/determined-snowflake-p3d91?file=/src/App.tsx:0-135
The above results in
Expected behavior:
Should not throw an error here
Environment information:
dependencies
.babelrc (setup according to docs) https://emotion.sh/docs/@emotion/babel-plugin
The text was updated successfully, but these errors were encountered: