tailwind generator fails on Windows 10
See original GitHub issueWith a new installation of Redwood 0.19.1 yarn rw g util tailwind
fails to execute on Windows 10 using PowerShell. Also tested with same result using Git Bash.
Output
PS C:\Users\nerdstep\webdev\shipu> yarn rw g util tailwind
yarn run v1.22.5
$ C:\Users\nerdstep\webdev\shipu\node_modules\.bin\rw g util tailwind
rw g util <util>
Quality of life utilities
Options:
--help Show help [boolean]
--version Show version number [boolean]
Also see the Redwood CLI Reference
(https://redwoodjs.com/reference/command-line-interface)
Not enough non-option arguments: got 0, need at least 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
System info
System:
OS: Windows 10 10.0.19041
Binaries:
Node: 12.18.4 - ~\AppData\Local\Temp\yarn--1601065079101-0.9007915850264594\node.CMD
Yarn: 1.22.5 - ~\AppData\Local\Temp\yarn--1601065079101-0.9007915850264594\yarn.CMD
Browsers:
Edge: Spartan (44.19041.423.0), Chromium (85.0.564.63)
npmPackages:
@redwoodjs/core: ^0.19.1 => 0.19.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Tailwindcss 3 does not init on Windows 10 - Stack Overflow
At work, I use Windows 10 and it just does not work at all. I am crazy to start a new project with...
Read more >My Dashboard Isn't Working Correctly
If something on your Tailwind dashboard is not working, check out the potential solutions below to help get it resolved!
Read more >How to: Add TailwindCSS to RedwoodJS
Hi folks - I am loving Redwood and wanted to pair it with the productivity of TailwindCSS. I wrote my findings on how...
Read more >Using Tailwind CSS with Rails - Honeybadger Developer Blog
Tailwind CSS is a popular CSS framework that helps developers quickly build and style web pages with a unique utility-based approach.
Read more >An Eleventy Starter with Tailwind CSS and Alpine.js
Hm, I don't understand why this setup doesn't work on Windows. Probably some issue with server sync, or ./ in the paths but...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, apparently, Setup hasn’t been, ahem, setup?
This helps. Will dig deeper a bit later
As we saw in a previous comment of mine, installing 0.19.2-canary.40 doesn’t give me the setup command at all. Doing a build locally and copying that over (
yarn rwt copy
) does give mesetup
.But running
yarn rw setup tailwind
fails with a message of a missing file, and I couldn’t figure out why. I runyarn rwt copy
and the file is there. I runyarn rw setup tailwind
and the file is not there 🤔I finally figured out the file disappears because
yarn rw setup tailwind
doesyarn workspace web add ...
and that overwrites (removes) the stuff thatyarn rwt copy
copied to the node_modules folder. le sighSo. This works: