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

bundling failed:Unable to resolve module (rn version 0.46.4) #15364

Closed
craftdong opened this issue Aug 4, 2017 · 8 comments
Closed

bundling failed:Unable to resolve module (rn version 0.46.4) #15364

craftdong opened this issue Aug 4, 2017 · 8 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@craftdong
Copy link

in react-native version 0.44,the code below runs well

require('./img/tabbar/pfb_tabbar_homepage_selected@2x.png')

but when i update react-native to version 0.46.4, the code runs error.
the error msg shows:

bundling failed: "Unable to resolve module ./img/tabbar/pfb_tabbar_homepage@2x.png from F:\code\react-native\meituanCopy\src\RootScene.js: could not resolve `F:\code\react-native\meituanCopy\src\img\tabbar\pfb_tabbar_homepage@2x.png' as a folder: it did not contain a package, nor an index file"

@craftdong
Copy link
Author

any facebook offical solution for this issue? @hramos

@leechance
Copy link

i miss the same issue. did you resolved it? @craftdong

@leechance
Copy link

i miss the same issue. did you resolved it? @hramos

@hramos
Copy link
Contributor

hramos commented Aug 4, 2017

Three mentions within seconds of creating the issue is a bit excessive. In any case, there's already an issue open about this in #14980.

@hramos
Copy link
Contributor

hramos commented Aug 4, 2017

Duplicate of #14980

@hramos hramos marked this as a duplicate of #14980 Aug 4, 2017
@hramos hramos closed this as completed Aug 4, 2017
@caipizi
Copy link

caipizi commented Sep 30, 2017

Image naming cannot be @ symbol

@RiBj1993
Copy link

run this in cmd :
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

@mariraj-mitosis
Copy link

mariraj-mitosis commented Jul 12, 2018

But this command not working

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

@facebook facebook locked as resolved and limited conversation to collaborators Aug 4, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 4, 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

7 participants