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

TypeScript + Array prop type causes component type to become "corrupt" #1936

Closed
ffxsam opened this issue Jul 24, 2018 · 1 comment
Closed

Comments

@ffxsam
Copy link
Contributor

ffxsam commented Jul 24, 2018

Version

3.0.0-rc.5

Reproduction link

https://github.com/ffxsam/repro-ts-array-prop-bug

Steps to reproduce

Clone repo and open HelloWorld.vue in VS Code (or run yarn serve)

What is expected?

No TS errors

What is actually happening?

Error: Property 'okProp' does not exist on type 'Vue'.


Try commenting out line 39 (fields prop def), and you'll notice the TS error go away

@Akryum Akryum added bug scope: typescript needs team repro We acknowledged your report and will soon try to reproduce it and removed needs team repro We acknowledged your report and will soon try to reproduce it labels Jul 24, 2018
@Akryum
Copy link
Member

Akryum commented Jul 24, 2018

This is an issue with Vue itself, see vuejs/vue#6841

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

No branches or pull requests

2 participants