-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Comments
Hmm, I haven't seen this issue. Can you try running |
Closing, bigger thread here #6691 |
Hi guys,
Can you help me to fix this? |
Hi guys,
Can you help me to fix this? |
sudo chmod -R 755 your-project |
Hi @rathierry, |
@cyclops24 That was our problem too. We had a space in one of our directory names. |
@Jimmy-YMJ thank you, that worked for me :D |
@Jimmy-YMJ thank you, that worked for and me :D |
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
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?
The text was updated successfully, but these errors were encountered: