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 macro returns undefined when used as selector #1097
Comments
Could you provide a reproduction? It's working in CodeSandbox, https://codesandbox.io/s/10240kz3pl |
@mitchellhamilton I'm honestly baffled, I literally copy/pasted the code from my codebase into codesandbox and it works... any ideas on how to debug something like this? in the meantime I'll try to track down the issue on my end. |
@mitchellhamilton okay, I tracked down the issue. it was because the component I was importing wasn't exported. maybe this should throw an error similar to how react does if you render |
@lifeiscontent I've implemented a warning for this in #1580 . Closing this right now as the PR will most likely be merged soon. |
when using the babel macro for
@emotion/styled/macro
the element returns anundefined
selector it should either throw if it cannot be found or return the right selector.e.g.
The text was updated successfully, but these errors were encountered: