CRR
December 27, 2020, 9:43pm
1
Hi Redwood community,
I’m wondering if someone would be able to take a look at an error I’m getting when trying to install tailwind?
I’m using the yarn rw setup tailwind
command on a brand new Redwood project, but it’s not compiling for some reason. I did do yarn install
as well.
Here is the error I’m getting:
Likely something in my setup, but would appreciate if anyone could point me in the right direction.
Thanks,
Connor
CRR
December 27, 2020, 10:09pm
2
I answered my own question
Followed this tailwind doc to updated from PostCSS 7 to PostCSS 8: https://tailwindcss.com/docs/installation#post-css-7-compatibility-build . Everything is working as expected now.
1 Like
Nice! Do we need to update the setup generator so others don’t get this error in the future?
@ajcwebdev The fix is already queued up for the next release:
redwoodjs:main
← redwoodjs:ds-tailwindcss-postcss7-compat
opened 03:40AM - 03 Dec 20 UTC
This PR changes the version of Tailwind CSS installed by the setup command to be… compatible with v7 of PostCSS. (I got the version from here: https://tailwindcss.com/docs/installation#post-css-7-compatibility-build.)
3 Likes
This is my first rodeo so correct me if I’m wrong but wouldn’t this be a good candidate for a patch fix instead of a minor version? I know Peter has done a few in the past but I think those were situations where he introduced the bug. I’ve always been a little hazy on these finer points of SemVer.