Error: PostCSS plugin autoprefixer requires PostCSS 8. Update PostCSS or downgrade this plugin

前端 未结 10 552
谎友^
谎友^ 2021-02-03 21:24

I am getting this error whenever I run npm start. I tried a couple of fixes but none of them work for me. I tried to change the version of autoprefixer to 9.8.6 but it didn\'t w

10条回答
  •  伪装坚强ぢ
    2021-02-03 21:58

    Based on documentation link are drop some support for old NodeJS and you must upgrade manually the packages. Example in my case for a project based on webpack need just to update those dependencies:

      "dependencies": {
        "autoprefixer": "^10.0.2",
        "postcss": "^8.1.7",
        "postcss-loader": "^4.0.4"
      }
    

    So you do not need to downgrade autoprefixer :)

提交回复
热议问题