7rulnik / postcss-flexibility

PostCSS plugin for Flexibility polyfill
MIT License
296 stars 14 forks source link

PostCSS version is 4.1.16, but postcss-flexibility uses 5.0.14 error #27

Closed Designer023 closed 8 years ago

Designer023 commented 8 years ago

Hi,

I'm having issues getting the plugin to work. I have updated post CSS to the latest version in my project (6.1.1) and I'm still getting the errors: Your current PostCSS version is 4.1.16, but postcss-flexibility uses 5.0.14. Perhaps this is the source of the error below.

events.js:141
      throw er; // Unhandled 'error' event
      ^
TypeError: css.walkRules is not a function
    at /path/node_modules/postcss-flexibility/index.es5.js:15:7
    at LazyResult.run (/path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:197:24)
    at /path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:110:37
    at LazyResult.asyncTick (/path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:124:15)
    at /path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:122:27
    at LazyResult.asyncTick (/path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:124:15)
    at /path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:122:27
    at LazyResult.asyncTick (/path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:124:15)
    at /path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:122:27
    at LazyResult.asyncTick (/path/project/front-end/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:124:15)

Process finished with exit code 1

All other PostCSS plugins are working ok, so not sure what's happening. Any ideas? Thank you

Designer023 commented 8 years ago

I'm an idiot. 2 package json files in my repo (big project) wrong one had the right version of postCSS. That'll teach me!