Skip to content

TypeError: Cannot read property 'func' of undefined (React.PropTypes) #59

@MatanBobi

Description

@MatanBobi

Since React 15.5 PropTypes is no longer a part of the main package and has to be included as a different package: prop-types.
When accessing PropTypes from the main package we get:
TypeError: Cannot read property 'func' of undefined.

Migration guide

I would gladly submit a PR for this one if this repo is still active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions