Skip to content

Current postcss version is incompatible. #691

@zry656565

Description

@zry656565

Do you want to request a feature or report a bug?

I don't know, maybe a bug of css-loader or postcss-loader.

What is the current behavior?

$ webpack

Webpack is watching the files…

Your current PostCSS version is 5.2.17, but postcss-modules-scope uses 6.0.1. Perhaps this is the source of the error below.
...
ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??ref--5-3!./node_modules/less-loader/dist/cjs.js??ref--5-4!./node_modules/prepend-style-loader??ref--5-5!./static_files/libraries/components/LCAlert/Button.less
Module build failed: Error: composition is only allowed when selector is single :local class name not in ".delete", ".delete" is weird
...

What is the expected behavior?

Upgrade postcss version of css-loader to ^6.0.1 please, because another dependency of css-loader, postcss-modules-scope@^1.1.0, relies on postcss@^6.0.1.

And my problem may be fixed.

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

  • webpack: 3.10.0
  • node: 9.7.1
  • OS: macOS 10.13.4
  • css-loader: 0.28.10

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