stencil-postcss
stencil-postcss copied to clipboard
Type errors in autoprefixer.d.ts
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.