postcss-uncss icon indicating copy to clipboard operation
postcss-uncss copied to clipboard

css.walkRules is not a function

Open JTLR opened this issue 5 years ago • 3 comments

Hi, I've setup my gulp build to use gulp-postcss and postcss-uncss (8.0.0 and 0.16.1 respectively).

When trying to run uncss I get the following error:

[16:07:44] Using gulpfile C:\xampp\htdocs\site\gulpfile.js [16:07:44] Starting 'ampSass'...

events.js:136 throw er; // Unhandled 'error' event ^ TypeError: css.walkRules is not a function at getUsedSelectors (C:\xampp\htdocs\site\node_modules\uncss\src\lib.js:134:9) at Promise.all.pages.map (C:\xampp\htdocs\site\node_modules\uncss\src\lib.js:234:44) at Array.map () at uncss (C:\xampp\htdocs\site\node_modules\uncss\src\lib.js:234:30) at processAsPostCss (C:\xampp\htdocs\site\node_modules\uncss\src\uncss.js:214:12) at resource.then (C:\xampp\htdocs\site\node_modules\uncss\src\uncss.js:226:20) at

Any ideas what this could be?

JTLR avatar Sep 13 '18 15:09 JTLR

Nope, no ideas. @w0rm?

RyanZim avatar Sep 13 '18 16:09 RyanZim

Any ideas on this?

JTLR avatar Sep 18 '18 12:09 JTLR

See if this fixes the issue for you-

https://github.com/uncss/uncss/issues/287#issuecomment-320796167

albertvolkman avatar Aug 30 '19 14:08 albertvolkman