Skip to content

Not possible to use VueAnnouncer plugin (v3.1.2) in TS project #20

@pertoyra

Description

@pertoyra

When following "Basic usage" README section of VueAnnouncer v3.1.2 in a typescript Vue 3 project the below error occurs when installing the plugin using:

createApp(App)
  .use(VueAnnouncer)

Error

Argument of type 'typeof import(".../node_modules/@vue-a11y/announcer/dist/index")' is not assignable to parameter of type 'Plugin_2'.
  Property 'install' is missing in type 'typeof import(".../node_modules/@vue-a11y/announcer/dist/index")' but required in type '{ install: PluginInstallFunction; }'. ts(2345)

Reproducible by creating a simple Vue 3 TS application with Vue CLI.

Environment:

  • VueAnnouncer v3.1.2
  • Vue v3.0.5
  • Typescript v3.9.7

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