stencil-community / stencil-postcss

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

Type errors in autoprefixer.d.ts #40

Open ollar opened 2 years ago

ollar commented 2 years ago

Hello. I was trying to add autoprefixer to our stencil project and added a clean configuration

plugins: [
    postcss({
      plugins: [autoprefixer()]
    })
  ]

but typescript gives me the error below

[stencil] [ ERROR ]  TypeScript: ./node_modules/autoprefixer/lib/autoprefixer.d.ts:6:4
[stencil]            Generic type 'Plugin<T>' requires 1 type argument(s).
[stencil] 
[stencil]       L5:    ...args: [...T, autoprefixer.Options]
[stencil]       L6:  ): Plugin & autoprefixer.ExportedAPI
[stencil] 
[stencil] [58:30.7]  build failed, watching for changes... in 1.95

We already had a discussion in the postcss issue and managed to find a solution that you need to update the postcss dependency to the latest version.

Thanks.