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

plugin-postcss extendConfig option is broken with PostCSS error #767

Closed
1 of 5 tasks
thescientist13 opened this issue Oct 12, 2021 · 0 comments · Fixed by #768
Closed
1 of 5 tasks

plugin-postcss extendConfig option is broken with PostCSS error #767

thescientist13 opened this issue Oct 12, 2021 · 0 comments · Fixed by #768
Assignees
Labels
bug Something isn't working Plugins Greenwood Plugins v0.17.0
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

When trying to use the extendConfig option, the command fails with this error

Error: postcss-preset-env is not a PostCSS plugin
    at Processor.normalize (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/node_modules/postcss/lib/processor.js:169:15)
    at new Processor (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/node_modules/postcss/lib/processor.js:56:25)
    at postcss (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/node_modules/postcss/lib/postcss.js:55:10)
    at PostCssResource.optimize (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/plugin-postcss/src/index.js:5:2991)
    at /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/src/config/rollup.config.js:2:1270
    at async getOptimizedSource (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/src/config/rollup.config.js:2:937)
    at async Object.writeBundle (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/src/config/rollup.config.js:67:378)
    at async Promise.all (index 0)
    at async handleGenerateWrite (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/node_modules/rollup/dist/shared/rollup.js:23409:9)
    at async /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/src/lifecycles/bundle.js:2:233 {
  code: 'PLUGIN_ERROR',
  plugin: 'greenwood-html-plugin',
  hook: 'writeBundle'
}

Details

Ooof... looks like this isn't even getting set in the test, so that explains how it went undetected 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plugins Greenwood Plugins v0.17.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant