v3.0.11 no longer gets postcss as a transitive dependency
See original GitHub issueWhat version of Tailwind CSS are you using?
3.0.11
What build tool (or framework if it abstracts the build tool) are you using?
none
What version of Node.js are you using?
v17.0.1
What browser are you using?
N/A
What operating system are you using?
Windows
Reproduction URL
N/A
Describe your issue
Following the instructions at https://tailwindcss.com/docs/installation I installed tailwind and then tried to run npx tailwindcss init
and received an error saying Error: Cannot find module 'postcss'
.
This is due to postcss-js
v4 no longer taking a direct dependency on postcss
https://github.com/postcss/postcss-js/commit/034b00a9ae1db85f7b628d0195c931938ddcb718.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Error: PostCSS plugin tailwindcss requires PostCSS 8
I'm using Vue 3.0.7, which should have support for PostCSS 8, but I still get this error. My package-lock.json shows that the PostCSS...
Read more >Dependencies | hlp | npm - Open Source Insights
arrow_right @babel/cli. 7.19.3 Notes Relation Licenses Dependencies 37
Version 7.19.3 Published Description
arrow_right @babel/core. 7.20.5 Notes Relation Licenses Dependencies 51
Version 7.20.5 Published Description
Read more >PostCSS API
If you create a node manually (e.g., with postcss.decl() ), that node will not have a source property and will be absent from...
Read more >/CHANGELOG.md | lume@v1.14.1 | Deno
It's no longer needed to manually define the mergedKeys _data value. ... Updated dependencies: pagefind , std , terser , postcss-import , lightningcss ......
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
I followed the Tailwind CLI steps which say to only install
tailwindcss
. After some more testing this looks to be an issue when using yarn but not when using npm.Just learned that yarn doesn’t automatically install peer dependencies like npm (1, 2, 7+) does. Not sure how I haven’t hit this before, but that seems to be the cause here.
I think this should be re-opened - I’ve just run into the exact same issue.
The documentation for Tailwind CLI (https://tailwindcss.com/docs/installation) only mentions installing
tailwindcss
, butpostcss
is also needed to runnpx tailwind init
(on the next line).(Using NodeJS v16.13.2, Tailwind CSS 3.0.19, npm 8.1.2)