bradtraversy / react-tailwind-pixabay-gallery

Pixabay image gallery
164 stars 88 forks source link

Error: true is not a PostCSS plugin #33

Open Bokdem opened 1 year ago

Bokdem commented 1 year ago

After i cloned the project and ran npm install and npm start, I got the following error in my terminal...

Failed to compile.

Error: true is not a PostCSS plugin
ERROR in ./src/assets/main.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/assets/main.css)
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
heeween commented 11 months ago

I met the same problem

bambang commented 5 months ago

Edit package.json, upgrade the postcss-cli to minimum version 8. For example in devDependencies section, change this:

"postcss-cli": "^7.1.0",

to

"postcss-cli": "^8.1.0",

heeween commented 5 months ago

Edit package.json, upgrade the postcss-cli to minimum version 8. For example in devDependencies section, change this:

"postcss-cli": "^7.1.0",

to

"postcss-cli": "^8.1.0",

It really works. Thanks a lot.