Skip to content

Object API "this" is not defined on types with defineComponent #570

@bbugh

Description

@bbugh

We're incrementally adding the composition-api using defineComponent, and ran into a snag with one of our components that uses $route in the data function:

image

This code works fine with defineComponent, it's just the typing that doesn't.

Possibly related to #338?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtyping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions