Skip to content
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

Having typescript with class and "normal" components mixed causes errors #1378

Closed
3 tasks done
schnetzi opened this issue Aug 9, 2019 · 1 comment
Closed
3 tasks done
Labels

Comments

@schnetzi
Copy link

schnetzi commented Aug 9, 2019

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS 10.14.6
  • Vetur version: 0.21.1
  • VS Code version: 1.37.0

Problem

I cannot call the methods from the data object.

image

image

Reproducible Case

I made an example project with my problems:
https://github.com/schnetzi/vetur-problem

What did I try so far

  • I downgraded to v0.18.1

Additional Question

  • How do I give my scenarios in this case a type? I tried with type Array but then I get a lot more errors.
@ktsn
Copy link
Member

ktsn commented Aug 16, 2019

This is Vue's typing issue. You cannot access methods in data hook.
See: vuejs/vue#8721

@ktsn ktsn closed this as completed Aug 16, 2019
@ktsn ktsn added the upstream label Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants