Skip to content

css-modulesify / autoprefixer postcss version mismatch? #49

Closed
@zaim

Description

@zaim

I got this error while trying to use css-modulesify with autoprefixer: Your current PostCSS version is 4.1.16, but autoprefixer uses 5.0.8. Perhaps this is the source of the error below.

Not sure if its something wrong with my browserify command incantation, or what.

Full output below:

./node_modules/.bin/browserify -x moment -x react -x react-dom -x tcomb -x whatwg-fetch --debug -p [css-modulesify -o public/css/main.css --after autoprefixer --json app/styles/index.json] index.js | ./no
de_modules/.bin/exorcist public/js/bundle.js.map > public/js/bundle.js
Your current PostCSS version is 4.1.16, but autoprefixer uses 5.0.8. Perhaps this is the source of the error below.
TypeError: css.walkAtRules is not a function while parsing file: [path]/ui/app/components/styles/Progress.css
    at Processor.remove ([path]/ui/node_modules/autoprefixer/lib/processor.js:103:11)
    at plugin ([path]/ui/node_modules/autoprefixer/lib/autoprefixer.js:49:28)
    at LazyResult.run ([path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:197:24)
    at [path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:110:37
    at LazyResult.asyncTick ([path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:124:15)
    at [path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:122:27
    at LazyResult.asyncTick ([path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:124:15)
    at [path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:122:27
    at LazyResult.asyncTick ([path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:124:15)
    at [path]/ui/node_modules/css-modulesify/node_modules/css-modules-loader-core/node_modules/postcss/lib/lazy-result.js:122:27

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