Skip to content

css.walkRules is not a function #6

@JTLR

Description

@JTLR

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions