Hi All,
I wanted to share a quick post about an issue I ran into setting up Tailwind in the latest version of Redwood (v0.21.0) on Windows.
Here are the steps and issue (with solution) that I ran into. I was using the Terminal built into VSCode.
-
Ran the command “yarn rw setup tailwind”
-
Terminal returned the following error during the Tailwind Init step:
“‘mv’ is not recognized as an internal or external command” -
I decided to see what would happen even though the setup failed and ran “yarn rw dev”
-
App wouldn’t load and got a post-css error saying the tailwind.config.js file wasn’t found in the “web” directory.
-
I did have a tailwind.config.js file in the root of the app and this shed light on the “mv” not recognized error.
MV is a mac specific command and I’m pretty sure the RW setup command was attempting to move the tailwind.config file out of the root of the app into the web directory of the app.
SOLUTION
-
Manually move the tailwind.config file into the web directory
-
import the Tailwind CSS files into the app. In my case I added import ‘tailwindcss/tailwind.css’ into my web/src/index.js file
Hope this helps any other Windows users out there. Thanks for an amazing framework and community!
Neal