Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error "[object Object] is not a PostCSS plugin" on updating optimizer to v2.8.1 #1242

Open
ags1773 opened this issue Jun 17, 2021 · 1 comment
Assignees
Labels

Comments

@ags1773
Copy link

ags1773 commented Jun 17, 2021

On updating @ampproject/toolbox-optimizer to v2.8.1, I get the following error. Able to reproduce this on my colleagues' machines as well. v2.8.0 works fine

Error: [object Object] is not a PostCSS plugin
    at Processor.normalize (/Users/amogh/work/qt/thequint-malibu/node_modules/postcss/lib/processor.es6:130:15)
    at new Processor (/Users/amogh/work/qt/thequint-malibu/node_modules/postcss/lib/processor.es6:38:25)
    at postcss (/Users/amogh/work/qt/thequint-malibu/node_modules/postcss/lib/postcss.es6:34:10)
    at module.exports (/Users/amogh/work/qt/thequint-malibu/node_modules/cssnano-simple/src/index.js:54:10)
    at Processor.normalize (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/node_modules/postcss/lib/processor.js:40:13)
    at new Processor (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/node_modules/postcss/lib/processor.js:9:25)
    at postcss (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/node_modules/postcss/lib/postcss.js:25:10)
    at SeparateKeyframes.transform (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/lib/transformers/SeparateKeyframes.js:146:36)
    at DomTransformer.transformTree (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/lib/DomTransformer.js:184:25)
    at DomTransformer.transformHtml (/Users/amogh/work/qt/thequint-malibu/node_modules/@ampproject/toolbox-optimizer/lib/DomTransformer.js:168:5)
    at ampStoryPageHandler (/Users/amogh/work/qt/thequint-malibu/node_modules/@quintype/framework/server/amp/handlers/story-page.js:119:27)
@ags1773 ags1773 changed the title Error "[object Object] is not a PostCSS plugin" on updating to v2.8.1 Error "[object Object] is not a PostCSS plugin" on updating optimizer to v2.8.1 Jun 17, 2021
@sebastianbenz sebastianbenz self-assigned this Jun 17, 2021
@sebastianbenz
Copy link
Collaborator

Thanks for reporting! I have troubles reproducing this, have you maybe got a sample project?

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

No branches or pull requests

2 participants