-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Storybook and gatsby #27
Comments
In order to get storybook working with gatsby I followed the instructions from the gatsby site. |
Interesting - any idea what needs to be updated in the repo to get this working? |
Not sure I can try to put together a minimal repro if you'd like to try and help determine the cause. My guess is an issue with the custom webpack config needed for gatsby storybook. All things considered if this is a niche use case I can close this issue. I was hoping the error message would look familiar and there would be a straightforward solution. Your library is absolutely fantastic otherwise. |
Would be nice to change the error for sure - I would if I could :D |
Ok I got it working. Turns out there are limitations where queries aren't really working in gatsby so it isn't very convenient at the moment. Anyway here is the full example built on top of gatsby-emotion. https://github.com/lukesmurray/gatsby-emotion-storybook |
Nice one, great you got it working. |
gatsbyjs/gatsby#28922 (comment) based on this comment it looks like its in the roadmap for gatsby |
Works with static queries now. Updated the readme. https://github.com/lukesmurray/gatsby-emotion-storybook The instructions are pretty straightforward. Feel free to take out the relevant bits and make it an example . This is the relevant comment which provided the solution gatsbyjs/gatsby#26099 (comment) |
I think the only limitation is you need to run |
That's great, thanks for reporting back on this 👍 |
Storybook, Emotion, Gatsby. I've been struggling to add twin.macro to storybook in gatsby. I get warnings like the following
I tried to follow the instructions from emotion + storybook but it didn't quite work. I do have the twin.macro working in gatsby on its own though.
The text was updated successfully, but these errors were encountered: