stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

PostCSS plugin autoprefixer requires PostCSS 8 #28

Closed baticodes closed 3 years ago

baticodes commented 3 years ago

Hi mates,

I'm getting the folowing error after installing postCSS and autoprefixer following the steps detailed on readme. Current version of postCSS is 7:

Build Error PostCSS plugin autoprefixer requires PostCSS 8. Update PostCSS or downgrade this plugin. at Processor.normalize...

npm install @stencil/postcss --save-dev
npm install autoprefixer @types/autoprefixer --save-dev

(Edit) Those are my dev dependencies:

"devDependencies": {
    "@stencil/postcss": "^1.0.1",
    "@stencil/sass": "^1.3.2",
    "@types/autoprefixer": "^9.7.2",
    "autoprefixer": "^10.0.0"
  }
kalepail commented 3 years ago

Yep same here.

jptcnde commented 3 years ago

v9 will work, yarn add autoprefixer@9

badpenguin commented 3 years ago

well i've tried with v9 but i get the following errors:

[ ERROR ]  postcss: src/global/app.css: src/global/app.css
           undefined

[ ERROR ]  postcss: node_modules/ionicons/dist/collection/components/icon/icon.css: node_modules/ionicons/dist/collection/components/icon/icon.css
           undefined
illepic commented 3 years ago

Noting here that postcss-nested is throwing the same error.