question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

it did not contain a package, nor an index file

See original GitHub issue

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

  1. react-native -v: 0.46.1
  2. node -v:v6.10.3
  3. npm -v:3.10.10
  4. yarn --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:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
nemophrostcommented, Jul 17, 2017

I was able to fix this by changing my file names to ones without any @

6reactions
hramoscommented, Aug 3, 2017

I have not looked into this since the issue was closed. I recommend opening a new issue (and following the template).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found