Invalid PostCSS Plugin found at: plugins[0]
See original GitHub issuev13 of this plugin won’t compile for me. Is there something different I need to do to import the plugin as of v13?
Failed to compile.
./src/assets/Index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/react-scripts/node_modules/postcss-loader/src??postcss!./src/assets/Index.css)
TypeError: Invalid PostCSS Plugin found at: plugins[0]
(@/Users/dfalling/Code/ido/postcss.config.js)
at Array.forEach (<anonymous>)
Node 10.18.0
postcss.config.js:
const postcssImport = require("postcss-import");
module.exports = {
plugins: [
postcssImport
],
};
package.json:
"postcss": "8.1.4",
"postcss-loader": "4.0.4",
"postcss-import": "13.0.0",
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
TypeError: Invalid PostCSS Plugin found at: plugins[0]
css -o generated.css terminal throws an error TypeError: Invalid PostCSS Plugin found at: plugins[0] can anyone please help me to fix it. Thank ......
Read more >TypeError: Invalid PostCSS Plugin found at: plugins[1] #2795
Describe the problem: I am following this Upgrade guide. After running npm install tailwindcss@latest postcss@latest autoprefixer@latest, ...
Read more >Invalid PostCSS Plugin found – AutoPrefixer, ...
I recently encountered this error in my Terminal when working with TailwindCSS and attempting to build my final CSS file. Invalid PostCSS Plugin...
Read more >postcss/postcss - Gitter
Next js asks to pass the plugins as a string in postcss-config.js ... I do that I get the error Module build failed:...
Read more >TypeError: Invalid PostCSS Plugin found at: plugins[0] #360
IssueHunt = OSS Development ⚒ + Bounty Program . IssueHunt is an issue-based bounty platform for open source projects. Anyone can put a...
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
In case anyone else hits this error, I was getting it because I forgot to update my global
postcss-cli
installation to 8.xUpdating
postcss-cli
cleared everything up 👍Found it! The error message indicates it’s coming from
./node_modules/react-scripts/node_modules/postcss-loader
, which means your build process isn’t using the version ofpostcss-loader
you have in yourpackage.json
, it’s using thepostcss-loader
thatreact-scripts
pulls in, which happens to bepostcss-loader@3.0.0
: https://github.com/facebook/create-react-app/blob/aec42e2cc05fe0799a3b73830b874757e9e3f561/packages/react-scripts/package.json#L69To use postcss v8 plugins, you’ll either have to stop using
react-scripts
, or wait forreact-scripts
to upgrade their version ofpostcss-loader
to be compatible withpostcss
v8. Of course, you can also downgrade topostcss-import
v12, which usespostcss
v8.