You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried removing each plugin to see if the errors lied in the plugins(ie: autoprefixer, postcss-nested, etc.)` and it always throws the following error
[dev:rollup] [!] (plugin postcss) Error: PostCSS plugin postcss-import requires PostCSS 8.
[dev:rollup] Migration guide for end-users:
[dev:rollup] https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
[dev:rollup] src/_bundle/main.css
[dev:rollup] Error: PostCSS plugin postcss-import requires PostCSS 8.
[dev:rollup] Migration guide for end-users:
[dev:rollup] https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
[dev:rollup] at Processor.normalize (/Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/node_modules/postcss/lib/processor.es6:117:15)
[dev:rollup] at new Processor (/Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/node_modules/postcss/lib/processor.es6:38:25)
[dev:rollup] at postcss (/Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/node_modules/postcss/lib/postcss.es6:34:10)
[dev:rollup] at /Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/dist/index.js:213:28
[dev:rollup] at Generator.next (<anonymous>)
[dev:rollup] at asyncGeneratorStep (/Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/dist/index.js:19:24)
[dev:rollup] at _next (/Users/.../Workspace/gfe-builder/app/node_modules/rollup-plugin-postcss/dist/index.js:41:9)
importpathfrom"path";importcommonjsfrom"@rollup/plugin-commonjs";importpostcssfrom"rollup-plugin-postcss";importpostcssImportfrom"postcss-import";importpostcssNestedfrom"postcss-nested";importautoprefixerfrom"autoprefixer";exportdefault{input: "index.js",output: {file: "dist/main.bundle.js",format: "iife",},plugins: [postcss({extract: true,// Or with custom file name, it will generate file relative to bundle.js in v3extract: path.resolve("dist/main.style.css"),plugins: [postcssImport(),postcssNested(),autoprefixer(),],}),commonjs(),],};
The text was updated successfully, but these errors were encountered:
jarkin13
changed the title
Any plugin I use with postcss throws an error
Error: PostCSS plugin xxx requires PostCSS 8.
Nov 26, 2020
I have tried removing each plugin to see if the errors lied in the plugins(ie:
autoprefixer
,postcss-nested
, etc.)` and it always throws the following errorHere is my
package.json
Here is my
rollup.config.js
The text was updated successfully, but these errors were encountered: