Skip to content

Upgrading beyond VUE 3.5.13 breaks global plugin #141

Open
@valcorin

Description

@valcorin

src/plugins/index.ts:17:3 - error TS2345: Argument of type '[]' is not assignable to parameter of type '[ctx: Omit<{ attrs: Data; slots: Readonly; emit: (event: string, ...args: any[]) => void; expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void; }, "expose">]'.
Source has 0 element(s) but target requires 1.

export function registerPlugins (app: App) {
app.use(VueApexCharts)

Workaround is to remove the .use(VueApexCharts) and import it into the specific Vue component where it's needed

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