Undefined is not an object (evaluating '_react3.default.PropTypes.string')

Hi all,

New Expo user here, running into some trouble on initial load on physical device (iPhone 8).

I have an existing RN project that I am attempting to integrate into Expo - I started a blank project and copied over my JS.

I’ve included and imported ‘prop-types’ everywhere - that was my initial guess as to why things weren’t working. That didn’t resolve my issue, so I double checked my package.json, removed node_modules, and re-installed all dependencies to no avail.

Any help or direction in debugging what exactly is happening is greatly appreciated. Here is the error I’m getting:

undefined is not an object (evaluating ‘_react3.default.PropTypes.string’)

HelpText.js:20:24 loadModuleImplementation require.js:212:12 Field.js:4 loadModuleImplementation require.js:212:12 InputComponent.js:5 loadModuleImplementation require.js:212:12 InputField.ios.js:5 loadModuleImplementation require.js:212:12 index.js:5 loadModuleImplementation require.js:212:12 GameSetupFourSome.js:15 loadModuleImplementation require.js:212:12 InitialSetup.js:14 loadModuleImplementation require.js:212:12 App.js:14 loadModuleImplementation require.js:212:12 AppEntry.js:2 loadModuleImplementation require.js:212:12 guardedLoadModule require.js:139:45 global code :0

For what it’s worth, I can’t find HelpText.js anywhere in my project.

Here’s my package.json :
{
“main”: “node_modules/expo/AppEntry.js”,
“private”: true,
“name”: “WolfNative”,
“version”: “0.0.1”,
“scripts”: {
“start”: “node node_modules/react-native/local-cli/cli.js start”,
“test”: “jest”
},
“dependencies”: {
“apsl-react-native-button”: “^3.1.0”,
“babel-core”: “^6.26.0”,
“expo”: “^26.0.0”,
“immutability-helper”: “^2.6.5”,
“prop-types”: “^15.6.1”,
“react”: “16.3.0-alpha.1”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz”,
“react-native-form-generator”: “^0.9.9”,
“react-native-modal”: “^5.2.0”,
“react-native-table-component”: “^1.1.3”,
“react-navigation”: “^1.5.11”
},
“devDependencies”: {
“babel-jest”: “21.2.0”,
“babel-preset-react-native”: “4.0.0”,
“jest”: “21.2.1”,
“react-test-renderer”: “16.0.0-alpha.12”
},
“jest”: {
“preset”: “react-native”
}
}

Currently investigating how this may be tied to react-native-form-generator. Any and all help is appreciated.

You could search your node_modules directory for “HelpText”. Also might make sense to remove “react-native-form-generator” and comment out the usages and see if it works.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.