Skip to content

Type errors in autoprefixer.d.ts #40

@ollar

Description

@ollar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions