-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object API "this" is not defined on types with defineComponent #570
Comments
Can you share a reproduction on CodeSandbox? It looks fine to me. |
Sure, here's a reproduction CodeSandbox. The error appears in App.vue. |
Hello, "minimal" sample project: Thanks for all your effort! |
@meschg the reason is because of your |
We're incrementally adding the composition-api using
defineComponent
, and ran into a snag with one of our components that uses$route
in thedata
function:This code works fine with
defineComponent
, it's just the typing that doesn't.Possibly related to #338?
The text was updated successfully, but these errors were encountered: