-
Notifications
You must be signed in to change notification settings - Fork 452
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
cannot read property 'shape' of undefined #328
Comments
I am getting the error as " undefined is not an object (evaluating '_react.PropTypes.shape) " |
Just in case somebody else gets into this same issue, you could use my fork as a temporary fix: The PR #314 might fix most of the errors, but a lot of other libs also had to be updated in order to be able to use this package with React v16.0.0. |
I work around it by patching React 16 (for the time being until the guys from shoutem would fix this) Steps:
module.exports.PropTypes = require('prop-types');
let createClass;
Object.defineProperty(module.exports, 'createClass', {
get: function() {
if (!createClass) {
createClass = require('create-react-class').bind(module.exports);
}
return createClass;
}
}); Notice this patch is only valid for your local environment and everyone who clones the project and/or does 'yarn/npm install' would have to apply the patch (step 2). |
Hey guys, We've since fixed these issues with version 0.22.0 of the UI toolkit. Closing issue as resolved. |
Following is my App.js
Package.json
Error:
cannot read property 'shape' of undefined on iphone X,
undefined is not an object (evaluating '_react.PropTypes.shape') on iphone 7
The text was updated successfully, but these errors were encountered: