Skip to content

TypeScript Compilation Error #790

@petrishimovit

Description

@petrishimovit

src/components/Breadcrumb/index.vue:52:18TS2352: Conversion of type '{ path: string; meta: { title: string; }; }' to type 'RouteRecord' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.Type '{ path: string; meta: { title: string; }; }' is missing the following properties from type 'RouteRecord': regex, components, instances, props50 | const first = matched[0]51 | if (!this.isDashboard(first)) {> 52 | matched = [{ path: '/dashboard', meta: { title: 'dashboard' } } as RouteRecord].concat(matched)| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^53 | }54 | this.breadcrumbs = matched.filter((item) => {55 | return item.meta && item.meta.title && item.meta.breadcrumb !== fals

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions