-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
it did not contain a package, nor an index file #15030
Comments
I have the same problem the code was working correctly in 0.45.1 now i updated version and the images cannot load [email protected]' as a folder: it did not contain a package, nor an index file |
@hramos any resolution for this, or another issue that addresses it? Thanks! |
I was able to fix this by changing my file names to ones without any |
Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported. |
@nemophrost I think this fixes it for me too but then it would break React Native's static image functionality? https://facebook.github.io/react-native/docs/images.html#static-image-resources |
Is this a bug report? Yes Have you read the Bugs section of the How to Contribute guide? Yes Environment react-native -v: 0.46.1 Then, specify: Target Platform: iOS
Errors on @2x and @3x, but when I take out the @ it works fine
Expected Behavior Runs fine on Expo v18 (rn v0.45.1) Actual Behavior |
@henrypip Yeah it could break static image stuff. In my case I was only using |
any facebook offical solution for this issue? @hramos |
I have not looked into this since the issue was closed. I recommend opening a new issue (and following the template). |
@hramos have you see this? #15030 (comment) (I think that the template is following) |
I've created a ticket for this issue against the metro-bundler project 👉 facebook/metro#43 |
I have got the same error. |
dont support png u should transform jpg |
@sytolk there's hundreds of comments across issues and PRs on this repo every day, it's easy for things to slip by. Still, I highly recommend opening a new issue that meets the guidelines - the author still hasn't updated their original post, and the comment with the additional details was not from the OP. A new issue would make things easier for everyone. |
Is this a bug report?
(write your answer here)
Have you read the Bugs section of the Contributing to React Native Guide?
(Write your answer here.)
Environment
react-native -v
: 0.46.1node -v
:v6.10.3npm -v
:3.10.10yarn --version
(if you use Yarn):v0.24.5Then, specify:
Steps to Reproduce
(Write your steps here:)
1.react-native start
2.err shows up: bundling failed: "Unable to resolve module
./img/tabbar/[email protected]
fromF:\\code\\react-native\\meituanCopy\\src\\RootScene.js
: could not resolve `F:\code\react-native\meituanCopy\src\img\tabbar\[email protected]' as a folder: it did not contain a package, nor an index file"3.just using <Image
source={require('../img/tabbar/[email protected]')} /> and the png is existed
Expected Behavior
Actual Behavior
in v0.44.0 react-native , the code runs well..but when i copy the code to a new demo. the err shows...
Reproducible Demo
The text was updated successfully, but these errors were encountered: