Skip to content
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

Error: running react-native run-ios (back-icon.png doesn't exist) #12062

Closed
ColtHands opened this issue Jan 24, 2017 · 10 comments
Closed

Error: running react-native run-ios (back-icon.png doesn't exist) #12062

ColtHands opened this issue Jan 24, 2017 · 10 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ColtHands
Copy link

ColtHands commented Jan 24, 2017

  1. Updating latest watchman and node.
  2. Installing lastest react-native-cli
  3. Initialising react-native project
  4. Using react-native run-ios without any changes
  5. Error

transformed 349/394 (89%)
(node:25247) UnhandledPromiseRejectionWarning: Unhandled promise rejection
(rejection id: 893): UnableToResolveError:Unable to resolve module ./assets/back-icon.png from weekdays/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js: Directory weekdays/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/assets/back-icon.png doesn't exist

  • Node: v7.2.0
  • react-native-cli: v4.1.1
  • OSX: ElCapitan: v10.11.5 (15F34)
  • Simulator: iPhone 6 - iOS 10.2 (14C89)
  • Xcode: v8.2.1 (8C1002)

Opening
/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js
and changing
43: <Image style={styles.button} source={require('./assets/back-icon.png')} />
to
43: <Image style={styles.button} />
resolves issue, but i'm pretty sure i should not do that

Reinstalling node_modules inside project directiory, and inside /node_modules/react-native with
npm cache clean
rm -rf node_modules
npm install
doesn't do the trick.

also chaning package.json dependencies react-native from "0.40.0" to "0.38.0" fixes the problem

How to fix?

@ColtHands ColtHands changed the title Error running clean react-native run-ios (back-icon.png doesn't exist) Error: running clean react-native run-ios (back-icon.png doesn't exist) Jan 24, 2017
@ColtHands ColtHands changed the title Error: running clean react-native run-ios (back-icon.png doesn't exist) Error: running react-native run-ios (back-icon.png doesn't exist) Jan 24, 2017
@ericvicenti
Copy link
Contributor

Hmm, I haven't seen this issue.

Can you try running watchman watch-del-all and running the RN packager server with the --resetCache option?

@ColtHands
Copy link
Author

Closing, bigger thread here #6691

@cyclops24
Copy link

Hi guys,
I also want to create simple hello word based on this: https://facebook.github.io/react-native/docs/getting-started.html and I faced on this red error:

"node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/assets/back-icon.png doesn't exist"

Can you help me to fix this?
I worked with React-Native later without any issue but after install new version this error appear on any app (also a simple hello world)

@cyclops24
Copy link

This is my complete error:
photo_2017-03-04_20-51-18

@rathierry
Copy link

Hi guys,
I also want to create simple hello word based on this: https://facebook.github.io/react-native/docs/getting-started.html and I faced on this red error:

/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/assets/back-icon.png doesn't exist

Can you help me to fix this?
Please, please, please, please!!!!!!

@Jimmy-YMJ
Copy link

sudo chmod -R 755 your-project

@cyclops24
Copy link

Hi @rathierry,
See #6691 and check project folder path. Maybe special character exists in path. For example +. For me it's the main issue.

@gwest7
Copy link

gwest7 commented Apr 24, 2017

@cyclops24 That was our problem too. We had a space in one of our directory names.

@joselcvarela
Copy link

@Jimmy-YMJ thank you, that worked for me :D

@shels107
Copy link

shels107 commented Dec 7, 2017

@Jimmy-YMJ thank you, that worked for and me :D

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants