-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Component selector not working #77
Comments
Storybook is doing weird things. It is complicated to make it work with it. The problem is not in xstyled itself. You have to trick the webpack config of storybook. I think you would have the problem with emotion also, try to find issue for making emotion + storybook working. |
hey @gregberge I just double checked the problem in an isolated repo to make sure there was nothing wrong, but it seems like the xstyled preset is not working properly. I've tried the same example with emotion and also with xstyled, the emotion preset works well, but the same dummy example with xstyled still throws the It can be checked in the gif (please click on it 😅) I created a repo with the config that was used in the gif https://github.com/ivanbanov/xstyled-selector-bug, I really would like to help with a PR but Im not sure how to even debug it |
@gregberge seems like there is another bug when using the
not sure, but this one seems to be related to this plugin babel-plugin-jsx-pragmatic 🤔 |
v2 uses Emotion v11, so it is no longer relevant. |
Im trying to use components as selector with emotion the following error is showing up
I'm using the xstlyed babel preset, it seems to be working since in the compiled code it's fixing the
jsx
stuffsThe thing is when I try to use components as selector.
My babel config is
Also important to mention that I'm running the code in the storybook
5.2.6
What could be wrong?
The text was updated successfully, but these errors were encountered: