Skip to content

Cannot read property 'string' of undefined | React.PropTypes | LayoutPropTypes.js #14643

@gyetvan-andras

Description

@gyetvan-andras

After deleting and reinstalling my node_modules folder, I'm facing an issue that I don't understand in LayoutPropTypes.js file.

In node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js
The following variable is undefined : var ReactPropTypes = require('React').PropTypes;

react-native: 0.45.1
react: 16.0.0-alpha.12

Hey @hramos , don't close this issue giving an advice to search for solution on StackOverflow. It is a critical issue. My whole development is down because of this. And of course, first I tried to look an answer on StackOverflow, the only answer is to use prop-types package, but HOW in RN source?!

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