Error: true is not a PostCSS plugin
See original GitHub issuepostcss.config.js
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer')
],
};
package.json
"scripts": {
"start": "npm run build:css && react-scripts start",
"build": "npm run build:css && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build:css": "postcss src/styles/tailwind.css -o src/styles/main.css"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.0.0",
"postcss-cli": "^8.0.0",
"tailwindcss": "^1.8.10"
}
when yarn build:css
its trow error:
Error: true is not a PostCSS plugin
Environment: OS: ubuntu 20.04 IDE: viscode Browser: chrome latest tutorual-url: https://www.youtube.com/watch?v=hRFbqdJKRvQ
Any help
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error: true is not a PostCSS plugin · Issue #17236 · vercel/next.js
True is not a PostCSS plugin Describe the bug When running yarn dev it returns the following error: error - ./styles/index.css (.
Read more >Warning: true is not a PostCSS plugin - Stack Overflow
I have an issue while building a project, this error keeps popping up: Warning: true is not a PostCSS plugin. This error was...
Read more >PostCSS a not plugin 打包is jenkins打包发布问题跟踪Error
之前在develop平台上一个前台项目全自动构建都正常,昨天构建失败了_1671465600.
Read more >Your current PostCSS version is 8.2.4, but postcss-import uses ...
I installed fortawesome but it gives the error: Unknown error from PostCSS plugin. Your current PostCSS version is 8.2.4, but postcss-import uses 7.0.35....
Read more >What is PostCSS? How to Use Plugins to Automate CSS Tasks
The "color-no-invalid-hex": true rules give an error in the terminal if an invalid hex value is provided as a color for a given...
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
This will still happen for people who setup with just postcss-cli (similar to issue author’s devDependencies)
Here’s how to solve it:
same to me @ai