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

Vue throws error Missing required prop even if provided #3668

Closed
sqal opened this issue Sep 13, 2016 · 0 comments
Closed

Vue throws error Missing required prop even if provided #3668

sqal opened this issue Sep 13, 2016 · 0 comments
Labels

Comments

@sqal
Copy link
Contributor

sqal commented Sep 13, 2016

Vue.js version

1.0.26

Reproduction Link

vue@1.0.26 https://jsfiddle.net/84hvc9zh/
vue@2.0.0.rc-6 https://jsfiddle.net/84hvc9zh/1/

Steps to reproduce

Open reproduction links, check console

What is Expected?

Vue shouldn't warn about missing prop since it's provided via propsData.

What is actually happening?

Throws an error:

[Vue warn]: Missing required prop: <prop>
[Vue warn]: Invalid prop: type check failed for prop "<prop>". Expected String, got Undefined.

Happens only in Vue 1.x

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