Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Nested complex types fall back to any #246

Closed
unstubbable opened this issue Dec 14, 2016 · 2 comments
Closed

Nested complex types fall back to any #246

unstubbable opened this issue Dec 14, 2016 · 2 comments

Comments

@unstubbable
Copy link
Collaborator

In our project some types fall back to any (error message: Failed to infer PropType; Fallback to any). It seems that nested complex types could be a cause of those issues, e.g.:

static propTypes = {
  foo: React.PropTypes.arrayOf(React.PropTypes.shape({
    bar: React.PropTypes.string,
    baz: React.PropTypes.string
  }))
}
@KnisterPeter
Copy link
Owner

@KingHenne is this still valid?

@KnisterPeter KnisterPeter removed the bug label Feb 28, 2017
@unstubbable
Copy link
Collaborator Author

After the recent changes the listed issues are now mostly caused by references to imported objects. Thanks for the improved error messages!

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

No branches or pull requests

2 participants