FoundrySH / postcss-purgecss

PostCSS plugin for PurgeCSS
MIT License
2 stars 1 forks source link

TypeError: selectorParser(...).processSync is not a function #2

Open jameshulse opened 6 years ago

jameshulse commented 6 years ago

When building with webpack I am getting an error:

Module build failed: TypeError: selectorParser(...).processSync is not a function
    at e.value (.../node_modules/postcss-purgecss/index.js:1:12629)
    at .../node_modules/postcss-purgecss/index.js:1:11899

It as accompanied with the postcss error:

Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.22, but postcss-plugin-purgecss uses 5.2.18. Perhaps this is the source of the error below.

I can't find anywhere in this repository that explicitly states the PostCSS version that it works against - is there a way I can fix this or is it necessary for this plugin to be updated?

Thanks

Ffloriel commented 6 years ago

Thanks for reporting the issue. I think the version of postcss-purgecss on npm reference postcss directly. This is not the case now and the next version of the plugin (soon to be released) will most likely fix this issue.

Ffloriel commented 6 years ago

@FoundrySH could you eventually add me to the npm owners list? That way, I can take care of the release on npm when you are busy.