Skip to content

Vue throws error Missing required prop even if provided #3668

@sqal

Description

@sqal

Vue.js version

1.0.26

Reproduction Link

[email protected] https://jsfiddle.net/84hvc9zh/
[email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions