question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[!] (plugin postcss) Error: PostCSS plugin autoprefixer requires PostCSS 8.

See original GitHub issue

It report: [!] (plugin postcss) Error: PostCSS plugin autoprefixer requires PostCSS 8. when I use autoprefixer@10.0.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
SASUKE40commented, Dec 7, 2020

🎉 This issue is resolved in version 4.0.0 🎉

The release is available on:

2reactions
eugeneilyincommented, Nov 14, 2020

@egoist, @benmccann, @michaeland, @wardpeet, @JounQin can you fix this peerDependency in the package.json for rollup-plugin-postcss from the suggested fork in #324 and put it into npm? It’s very annoying to revert package.json manually to the fixed variant after any yarn command due to npm contains the 3.1.8 version. Thanks 😃

{
  "name": "rollup-plugin-postcss",
  "version": "3.1.9",
  "description": "Seamless integration between Rollup and PostCSS",
  "main": "dist/index.js",
  "files": [
    "dist",
    "types/index.d.ts"
  ],
  "scripts": {
    "test": "npm run lint && jest",
    "test:cov": "npm run lint && jest --coverage",
    "build": "bili",
    "lint": "xo",
    "prepublishOnly": "npm run build"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/egoist/rollup-plugin-postcss.git"
  },
  "keywords": [
    "postcss",
    "rollup"
  ],
  "author": "EGOIST <0x142857@gmail.com>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/egoist/rollup-plugin-postcss/issues"
  },
  "engines": {
    "node": ">=10"
  },
  "types": "./types/index.d.ts",
  "homepage": "https://github.com/egoist/rollup-plugin-postcss#readme",
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/preset-env": "^7.9.5",
    "autoprefixer": "^10.0.1",
    "babel-core": "^7.0.0-bridge.0",
    "babel-jest": "^26.6.3",
    "bili": "^5.0.5",
    "eslint-config-rem": "^4.0.0",
    "fs-extra": "^9.0.0",
    "jest": "^26.6.3",
    "less": "^3.11.1",
    "node-sass": "^4.13.1",
    "postcss": "^8.1.6",
    "rollup": "^2.6.1",
    "stylus": "^0.54.7",
    "sugarss": "^3.0.3",
    "xo": "^0.29.1"
  },
  "dependencies": {
    "chalk": "^4.0.0",
    "concat-with-sourcemaps": "^1.1.0",
    "cssnano": "^4.1.10",
    "import-cwd": "^3.0.0",
    "p-queue": "^6.3.0",
    "pify": "^5.0.0",
    "postcss-load-config": "^3.0.0",
    "postcss-modules": "^3.2.2",
    "promise.series": "^0.2.0",
    "resolve": "^1.16.1",
    "rollup-pluginutils": "^2.8.2",
    "safe-identifier": "^0.4.1",
    "style-inject": "^0.3.0"
  },
  "peerDependencies": {
    "postcss": "^8.1.6"
  },
  "xo": {
    "extends": "rem",
    "envs": [
      "jest"
    ],
    "rules": {
      "import/prefer-default-export": 0,
      "import/extensions": 0,
      "import/no-unassigned-import": 0,
      "@typescript-eslint/semi": 0,
      "eslint-comments/disable-enable-pair": 0,
      "promise/prefer-await-to-then": 0
    }
  },
  "jest": {
    "testEnvironment": "node"
  },
  "babel": {
    "presets": [
      [
        "@babel/preset-env",
        {
          "targets": {
            "node": "6"
          }
        }
      ]
    ]
  },
  "release": {
    "branches": [
      "master",
      "next"
    ]
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: PostCSS plugin autoprefixer requires ... - Stack Overflow
PostCSS was updated to version 8, however, PostCSS CLI has not yet been updated to handle PostCSS plugins which use the new PostCSS...
Read more >
PostCSS plugin autoprefixer requires PostCSS 8. Update ...
Error when running dev or build with Parcel. Configuration (.babelrc, package.json, cli command) .babelrc. { "presets": [ " ...
Read more >
[Solved]-Error: PostCSS plugin autoprefixer requires PostCSS ...
Coding example for the question Error: PostCSS plugin autoprefixer requires PostCSS 8. Update PostCSS or downgrade this plugin-Reactjs.
Read more >
Error: PostCSS plugin autoprefixer requires ... - DevPress
Answer a question I am getting this error whenever I run npm start. I tried a couple of fixes but none of them...
Read more >
PostCSS plugin autoprefixer requires PostCSS 8. - Issuehunt
i am also getting the same error "requires PostCSS 8" error while using: "rollup": "^2.3.4",; "postcss-import": "^13.0.0",; "rollup-plugin-postcss": ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found