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

[2.7.x] Defined props using object syntax are not correctly inferred #12935

Closed
ludwig801 opened this issue Jan 18, 2023 · 1 comment · May be fixed by #12957
Closed

[2.7.x] Defined props using object syntax are not correctly inferred #12935

ludwig801 opened this issue Jan 18, 2023 · 1 comment · May be fixed by #12957

Comments

@ludwig801
Copy link

ludwig801 commented Jan 18, 2023

Version

2.7.14

Reproduction link

codesandbox.io

What is expected?

Props object to be interpreted correctly and the props to be defined in the methods / computed / lifecycle hooks.

What is actually happening?

Defined props using object syntax are not recognized as belonging to the instance.


My development environment is:

  • VSCode (v1.7.43)
  • Volar (v1.0.24) - takeover mode
  • Vue 2.7.14
@yyx990803
Copy link
Member

No longer reproducible with latest version of Volar (1.8.25)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants