postcss / gulp-postcss

Pipe CSS through PostCSS processors with a single parse
MIT License
769 stars 65 forks source link

gulp-postcss with postcss-sprites leads to error #147

Closed erredeco closed 5 years ago

erredeco commented 5 years ago

On my package.json I have:

 "gulp-postcss": "^8.0.0",
  "postcss-sprites": "^4.2.1",

and I got the error:

Unknown error from PostCSS plugin. Your current PostCSS version is 7.0.6, but postcss-sprites uses 5.2.18. Perhaps this is the source of the error below
[...]
Stack:
TypeError: postcss.decl is not a function

How can I deal with this error? Is it possible to resolve it with a downgrade? How? Thank you!

erredeco commented 5 years ago

issue can be closed; postcss.decl requires postcss and not gulp-postcss