Cannot Start the Example
See original GitHub issueIssue Description
I am trying to start the example as per the description:
git clone https://github.com/FaridSafi/react-native-gifted-chat
cd react-native-gifted-chat/example
npm install
react-native run-android
Expected Results
I receive the following error after npm install
:
npm ERR! GiftedChat@0.0.1 postinstall: `yarn run clean:example; yarn run clean:babelrc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the GiftedChat@0.0.1 postinstall script.
If I continue past this point with react-native run-android
, I receive the following error:
error: bundling failed: "Unable to resolve module `prop-types` from `C:\\Programming\\react-native-gifted-chat\\src\\GiftedChat.js`: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."
Thanks for the help!
Additional Information
- React Native version: 0.46.3
- react-native-gifted-chat version: 0.2.0
- Platform(s) (iOS, Android, or both?): Android
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
solr installation, cannot start examples - Stack Overflow
Step 3:Use windows command prompt to create start solr Solr Command 1.To Start Solr: Go to the active drive where solar-6.6.0 folder is ......
Read more >Need help on basic C# code. Error cannot start statement with ...
CANT I USE BRACKETS IN AN ELSE STATEMENT? THE ERROR SAYS CANT START STATEMENT WITH ELSE. else { Write("Only integers one and three...
Read more >Column: It's not true that good sentences can't start with 'he ...
“Good sentences don't start with He/She/They.” That's a lesson that, according to a Twitter post, a teacher recently passed on to a child....
Read more >Error codes in Device Manager in Windows - Microsoft Support
Code 19 "Windows cannot start this hardware device… (Code 19)" · From Start, search for device manager and select Device Manager from the...
Read more >ERROR: for orderer.example.com Cannot start service orderer ...
Cannot access cli · Also cannot up the daemons Error below · for docker ps command getting below · when i gave docker...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed mine, follow this: https://stackoverflow.com/questions/36119358/react-native-command-run-ios-unrecognized/36126924 So basically the problem is not the example, it’s that you need to run yarn install instead of npm install.
I have the same issue, and how it’s possible to the command yarn run clean:example; yarn run clean:babelrc works if it has a command before deleting everything, I’m new in js world, coming from python and I’m kind of lost here. I’m using the latest commit in master.
Manjaro 17.0.5 yarn 0.24.5 node v8.6.0 npm 5.5.1