facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 356 forks source link

undefined is not an object (evaluating '_react.PropTypes.string') #243

Closed Chinna12345678 closed 5 years ago

Chinna12345678 commented 5 years ago

i am seeing this error on android simulator. i already have the PropTypes imported into the js file , but i am still seeing this error

undefined is not an object (evaluating '_react.PropTypes.string')

index.delta?platform=android&dev=true&minify=false:198222:28 loadModuleImplementation index.delta?platform=android&dev=true&minify=false:262:14 guardedLoadModule index.delta?platform=android&dev=true&minify=false:158:38 metroRequire index.delta?platform=android&dev=true&minify=false:88:92 index.delta?platform=android&dev=true&minify=false:197963:51 loadModuleImplementation index.delta?platform=android&dev=true&minify=false:262:14 guardedLoadModule index.delta?platform=android&dev=true&minify=false:158:38 metroRequire index.delta?platform=android&dev=true&minify=false:88:92 index.delta?platform=android&dev=true&minify=false:197813:62 loadModuleImplementation index.delta?platform=android&dev=true&minify=false:262:14 guardedLoadModule index.delta?platform=android&dev=true&minify=false:158:38 metroRequire index.delta?platform=android&dev=true&minify=false:88:92
ljharb commented 5 years ago

That suggests you're doing React.PropTypes somewhere, instead of referencing the imported prop-types package.