Skip to content

TS2339: Property 'xxx' does not exist on type 'MyComponent'. #391

@Seminioni

Description

@Seminioni

Hey folks, anyone knows how to properly say to TypeScript how to get know about Prop's type I entitled on the first picture?

  1. This one guy declared Prop called engine.

Screenshot 2020-01-28 at 02 04 29

  1. Here I am extending the component from the first one picture

изображение

  1. (The same component from above picture) The problem is TypeScript can not infer engine type correctly

изображение

Before that, I tried to use example from example folder: https://github.com/vuejs/vue-class-component/blob/master/example/src/App.vue but it didn't help me.

Is there something wrong with my code or I explicitly have to declare engine class' property on EmSearchEngine component?

Big thanks in advance for your help.

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