Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postcss 8 support #2670

Closed
abhaykeerthy12 opened this issue Oct 25, 2020 · 3 comments
Closed

Postcss 8 support #2670

abhaykeerthy12 opened this issue Oct 25, 2020 · 3 comments

Comments

@abhaykeerthy12
Copy link

abhaykeerthy12 commented Oct 25, 2020

Describe the problem:

Tailwind 1.9.6 is not working with postcss-cli version 8, giving error : "Error: true is not a PostCSS plugin"

module.exports = { plugins: [ require("postcss-import"), require("tailwindcss")("tailwind.config.js"), require("autoprefixer") ] }

Link to a minimal reproduction:

Use this versions of postcss-cli, autoprefixer, and postcss-import to reproduce bug

"autoprefixer": "^10.0.1", "postcss-cli": "^8.1.0", "postcss-import": "^13.0.0", "tailwindcss": "^1.9.6",

And run this command, btw, i'm using angular

postcss src/theme/tailwind.css -o src/styles.css

@khatabwedaa
Copy link

You can use npx tailwindcss build src/theme/tailwind.css -o src/styles.css instead

@adamwathan
Copy link
Member

Tailwind definitely works with PostCSS 8, it sounds like perhaps you forgot to install postcss when installing postcss-cli. Run npm install postcss and try again.

@adamwathan
Copy link
Member

Here's a simple PostCSS 8 project that includes Tailwind and builds as expected:

https://github.com/adamwathan/postcss8-tailwind

Going to close as based on the original message it appears to me that the issue is just not adding postcss as a dependency, which is outlined as one of the installation steps for postcss-cli:

https://github.com/postcss/postcss-cli#install

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants