-
Notifications
You must be signed in to change notification settings - Fork 41
PostCSS 7 Compatibility build #36
Comments
same here, i can't get it up with vue 2 |
I am also in the same boat! |
Same here, CRA doesn't support PostCSS 8 yet. tailwindcss-jit is amazing. Have any way tailwindcss-jit to work on CRA? |
Same issue with Storybook FWIW. Super keen to test drive JIT within my Next.js project (works out of the box) but Storybook doesn't support PostCSS 8 yet. |
To followup from my previous comment, I just Googled "Storybook PostCSS 8 support" and came across this page in their docs for the https://storybook.js.org/addons/@storybook/addon-postcss I followed the steps as outlined in the docs and updated my module.exports = {
stories: ["../src/**/*.stories.@(mdx|tsx)"],
addons: [
"@storybook/addon-essentials",
{
name: "@storybook/addon-postcss",
options: {
postcssLoaderOptions: {
implementation: require("postcss"),
},
},
},
],
} ...but alas, it did not work. I get the print out in the build logs that Storybook is using PostCSS 8:
...but I get the error
...which looks like a Webpack loader issue to me, but I'm not really sure how to resolve. I tried installing the latest version of |
For anyone interested in using Tailwind JIT with Storybook, I've created a bare bones error reproduction repo: https://github.com/wagerfield/storybook-tailwind ...and requested the assistance of @shilman (creator of Storybook) here: |
+1 for this - we use CRA and we see the following error from TW: |
I don't mean to spam this issue with Storybook related compatibility, but I was finally able to get the JIT compiler working with Storybook using the latest Storybook v6.2 RC packages in conjunction with the I have updated the repo that I created and shared above to show how to get this working for anyone who's interested. @adamwathan I'm not sure if this deserves a place in the official TW docs or not, but for users who wish to use One of the core maintainers of Storybook (@shilman) said that v6.2 will likely be published in the next couple of weeks, so you won't need to grab the It's a very specific setup targeted just at Storybook, but it means that users with the Next.js or CRA + Storybook stack (which is pretty common) can use the JIT compiler or standard |
No plans to offer a compatibility build at this time, at least while we're still in early alpha/pre-release mode like this. Once we work out the kinks and get this merged into |
Is there a chance we could get a PostCSS 7 Compatibility build?
I would love to try it out, but my Vue 2 application doesn't support Post CSS 8.
Thank you for your awesome work!
The text was updated successfully, but these errors were encountered: