-
Notifications
You must be signed in to change notification settings - Fork 25
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
Using plugin in storybook v5 #47
Comments
Added
|
@denvash were you able to resolve your issue? I am having a separate issue when it comes to using this plugin with Storybook V5. If I try to use the following example macro: export const Wind = styled.div`
${tw`font-mono text-sm text-red hover:text-blue`};
`; I get this error
|
I created a starter for gatsby: TL;DR, you should try adding Post-CSS. |
Thanks for the information. I managed to fix that error by installing |
Any news on this issue? I have the same issue with Storybook 5 / React / Typescript and tailwind.macro@next:
My ./storybook/.babelrc:
My .storybook/webpack.config.js:
If I don't have empty, I have the "can't resolve" error. |
I'm working on a project right now using storybook 5, react and typescript and the tailwind macro, you can check out the storybook configuration here https://github.com/rbutera/thatslit/tree/develop/.storybook let me know if you find this useful and it helps you fix your problem (what are you missing?) |
I've now made a gatsby starter with typescript, tailwindcss, babel-plugin-macros and, ofc, tailwind.macro If you want to see the reasoning behind it you can look at the blog post: Alternatively, you can just use the starter: |
It may be a follow up of #7
I'm getting a build-time error when trying to use this plugin in a storybook without success.
The plugin works well with CRA (using
v1
):Any guidance/suggesting (is it plugin's issue or storybook's) will be much appreciated.
Full Log
System:
The text was updated successfully, but these errors were encountered: