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

css.walkRules is not a function #6

Open
JTLR opened this issue Sep 13, 2018 · 3 comments
Open

css.walkRules is not a function #6

JTLR opened this issue Sep 13, 2018 · 3 comments

Comments

@JTLR
Copy link

JTLR commented Sep 13, 2018

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?

@RyanZim
Copy link
Member

RyanZim commented Sep 13, 2018

Nope, no ideas. @w0rm?

@JTLR
Copy link
Author

JTLR commented Sep 18, 2018

Any ideas on this?

@albertvolkman
Copy link

See if this fixes the issue for you-

uncss/uncss#287 (comment)

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

No branches or pull requests

3 participants