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

前端 未结 10 559
谎友^
谎友^ 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:41

    "dependencies": {
        "autoprefixer": "^9.8.6",
        "postcss": "^8.0.0",
        "postcss-cli": "^8.1.0",
        "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2",
    },
    

    Dependecies object and version can be modified directly in the package.json file and it work

提交回复
热议问题