Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: PostCSS plugin postcss-prefix-selector requires PostCSS 8. #94

Closed
sidoruk-sv opened this issue Aug 19, 2021 · 6 comments
Closed

Comments

@sidoruk-sv
Copy link

Starting to get such error with a minor update to postcss-prefix-selector@1.11.0.

Interesting how that happened (see that in deps, there where postcss 8 for a long time already).

@lllianreg
Copy link

help me !!!

Uncaught Error: Module build failed (from ./node_modules/_svg-sprite-loader@6.0.9@svg-sprite-loader/lib/loader.js):
Error: [object Object] is not a PostCSS plugin

node_modules_postcss@5.2.18@postcss\lib\processor.js:145:15
if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { normalized = normalized.concat(i.plugins); } else if (typeof i === 'function') { normalized.push(i); } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); } else { // ERROR: i: { postcssPlugin: 'postcss-prefix-selector', Rule: [Function: Rule] } throw new Error(i + ' is not a PostCSS plugin'); }

An urgent fix is required. Thank you

@RadValentin
Copy link
Owner

@kshiw @sidoruk-sv Please try to npm install again. Version 1.11.0 contained a breaking change, I published a new version 1.12.0 that fixes this.

@danielweck
Copy link

Ah, maybe this will fix this:
JetBrains/svg-sprite-loader#469
...checking

@danielweck
Copy link

I confirm that updating postcss-prefix-selector to the hotfix release 1.12.0 transitively fixes svg-sprite-loader.
Phew! :)
Thank you for addressing this regression bug quickly.
See:
JetBrains/svg-sprite-loader#469

@RadValentin
Copy link
Owner

Looks like everything went back to normal so I'm closing this one. Thanks for reporting it!

@sidoruk-sv
Copy link
Author

@RadValentin indeed, all is working now.

Thank you for lightning fast hotfix!)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants