Skip to content

Check postcss versions to avoid using PostCSS 7 #507

@ai

Description

@ai

Many users report the same problem with PostCSS 7 → 8 migration.

  1. They updated postcss-loader
  2. They ignored postcss peer dependency warning
  3. npm takes old postcss 7 from some deep dependency
  4. As a result they have an error about PostCSS incompatibility

Of course, we can blame users. But this is a popular error.

In postcss-cli we check postcss().version and show Add postcss to package.json error message. Should we do something like this in postcss-loader?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions