Skip to content

Current postcss version is incompatible. #691

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

Closed
zry656565 opened this issue Mar 8, 2018 · 6 comments · Fixed by #742
Closed

Current postcss version is incompatible. #691

zry656565 opened this issue Mar 8, 2018 · 6 comments · Fixed by #742

Comments

@zry656565
Copy link

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
@smmoosavi
Copy link

Can you find any solution?

@bkrajendra
Copy link

bkrajendra commented May 7, 2018

any solution.
Im getting same error on laravel passport package asset migration on my centos7 server
get this error when i do
npm run dev

Im having root access to server

ERROR in ./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/assets/sass/app.scss
Module build failed: Error: ENOENT: no such file or directory, scandir '/home/iocarein/alexa/node_modules/node-sass/vendor'

@alexander-akait
Copy link
Member

Oh guys, you are right, WIP

@alexander-akait
Copy link
Member

@bkrajendra please read you stacktrace before post issue , add node-sass to deps and install

@rwinzhang
Copy link

Get the same problem here, any update?

@mikeumus
Copy link

I had a nasty looking bug in a docker version of my app that upgrading css-loader's postcss module to ^6.0.1 fixed for me:

local.com | ERROR in ./node_modules/css-loader??ref--6-1!./node_modules/postcss-loader!./node_modules/sass-loader/lib/loader.js??ref--6-3!./node_modules/@custom/theme-loader/lib!./src/components/Form.scss
local.com | Module build failed: cwd gone missing
local.com |  @ ./src/components/Checkout/components/Checkout/components/Form.scss 4:14-335 13:2-17:4 14:20-341
local.com |  @ ./src/components/Checkout/components/Checkout/components/Form.jsx
local.com |  @ ./src/components/Checkout/components/Checkout/components/Dialog.jsx
local.com |  @ ./src/components/Checkout/components/Checkout/components/CartItems/components/CartItem/CartItem.jsx
local.com |  @ ./src/components/Checkout/components/Checkout/components/CartItems/CartItems.jsx
local.com |  @ ./src/components/Checkout/components/Checkout/Checkout.jsx
local.com |  @ ./src/components/Checkout/containers/Checkout/Checkout.jsx
local.com |  @ ./src/components/Checkout/routes/Checkout.jsx
local.com |  @ ./src/registries/CheckoutRegistry.es6
local.com |  @ ./devserver/components.es6
local.com |  @ multi webpack-hot-middleware/client?reload=true ./devserver/components.es6
`

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

Successfully merging a pull request may close this issue.

6 participants