it did not contain a package, nor an index file
See original GitHub issueIs 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.5
Then, specify:
- Target Platform: Android
- Development Operating System: Windows10
- Build tools:
Steps to Reproduce
(Write your steps here:)
1.react-native start
2.err shows up: 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”
3.just using <Image
source={require(‘…/img/tabbar/pfb_tabbar_homepage@2x.png’)} /> 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:14 (3 by maintainers)
Top Results From Across the Web
React Native Unable to resolve module 'png' as a folder:it did ...
I am using VS code editor and it didn't give error for the path, but when I tried building the application, it gave...
Read more >Tcl Built-In Commands - pkg_mkIndex manual page
Pkg_mkIndex is a utility procedure that is part of the standard Tcl library. It is used to create index files that allow packages...
Read more >Charts - Helm V2
Charts. Helm uses a packaging format called charts. A chart is a collection of files that describe a related set of Kubernetes resources....
Read more >Create and publish a NuGet package using Visual Studio ...
Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access...
Read more >Configuration - Sphinx documentation
This file (containing Python code) is called the “build configuration file” and ... Note that the current builder tag is not available in...
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 FreeTop 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
Top GitHub Comments
I was able to fix this by changing my file names to ones without any
@
I have not looked into this since the issue was closed. I recommend opening a new issue (and following the template).