question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

All I get is a red screen ith the following error I ran the following command :

$ANDROID_HOME/emulator/emulator -avd Nexus_5X_API_27_x86
react-native run-android --variant=i13047Debug

Environment

Environment: OS: macOS High Sierra 10.13.3 Node: 9.4.0 Yarn: Not Found npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.52.2 => 0.52.2 prop-types: “15.6.1”,

Expected Behavior

Have a look at my app, running as before

Actual Behavior

![image](https://user-images.githubusercontent.com/21151517/37530246-5cb62c9e-28f6-11e8-8bb6-c0a4cd4a1b68.png

BUILD SUCCESSFUL in 39s 180 actionable tasks: 8 executed, 172 up-to-date Running /Users/**/Library/Android/sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081 Starting the app on emulator-5554 (/Users/hexasolutions/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -n io.h6s.m2s/io.h6s.m2s.MainActivity)… Starting: Intent { cmp=io.h6s.m2s/.MainActivity } Error type 3 Error: Activity class {io.h6s.m2s/io.h6s.m2s.MainActivity} does not exist. BUILD SUCCESSFUL in 39s 180 actionable tasks: 8 executed, 172 up-to-date Running /Users//Library/Android/sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081 Starting the app on emulator-5554 (/Users/hexasolutions/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -n io.h6s.m2s/io.h6s.m2s.MainActivity)… Starting: Intent { cmp=io.h6s.m2s/.MainActivity } Error type 3 Error: Activity class {io.h6s.m2s/io.h6s.m2s.MainActivity} does not exist.

Process finished with exit code 0

The Activity Class error seems normal as I use flavor in gradle

I have just no idea where to start looking as I have reason to think this has nothing to do with PropsTypes Thank you for help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
react-native-botcommented, Apr 16, 2018

It looks like this issue is missing some necessary information. Take a look at the comments I’ve left before, or look at the list of purple labels, to learn more about what’s missing. I’m going to close this issue as it has been over a week since I provided feedback on the issue, but I don’t see any updates.

If someone else runs into this problem, feel free to open a new issue with all the necessary details.

0reactions
Lxxyxcommented, Mar 16, 2018

@GuillotJessica Try connect debugger, and see the stack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"TypeError: undefined is not an object (evaluating '_react. ...
TypeError: undefined is not an object (evaluating '_react.PropTypes.array')". My project has not shown any result for PropTypes.
Read more >
undefined is not an object (evaluating 'react.PropTypes. ...
The error happens because PropTypes in React 16 is deprecated. You should use the prop-types package from npm instead.
Read more >
Why am I getting "undefined is not an object (evaluating ...
Coding example for the question Why am I getting "undefined is not an object (evaluating PropTypes.shape)"?-Reactjs.
Read more >
Props and PropTypes | Mastering React Native
Well, without any intervention from the component developer, those properties will appropriately have the value undefined when no value is passed in. This...
Read more >
undefined is not an object (evaluating '_reactnative.image. ...
App has not been started due to this error. The complete error message is : ERROR TypeError: undefined is not an object (evaluating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found