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

Error: Unable to resolve module './LogBoxImages/chevron-left.png' from 'node_modules\react-native\Libraries\LogBox\UI\LogBoxInspectorHeader.js' #27

Open
NJ2020 opened this issue Oct 29, 2020 · 5 comments

Comments

@NJ2020
Copy link

NJ2020 commented Oct 29, 2020

Hi, I am facing below mentioned error while trying to run "tflite-react-native\example" using "react-native run-android" with my Android phone connected using USB cable and with USB debugging "on"

image

image

Below is my package.json file in tflite-react-native\example folder:

{
"name": "example",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.6.3",
"react-native": "^0.63.3",
"react-native-image-picker": "0.28.0",
"tflite-react-native": "0.0.5"
},
"devDependencies": {
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.1.0",
"jest": "24.1.0",
"metro-react-native-babel-preset": "0.51.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
}

Kindly suggest.

@projectawesomede
Copy link

i dont know too

@GeetanjaliBasakare
Copy link

Error: Unable to resolve module ./LogBoxImages/loader.png from F:\Demo\demo\node_modules\react-native\Libraries\LogBox\UI\LogBoxInspectorSourceMapStatus.js:

Same issue to any solution.

@Sabit-Ahmed
Copy link

I have faced the same issue. The file is exactly there (./LogBoxImages/close.png), but the error is showing "error: Error: Unable to resolve module ./LogBoxImages/close.png"

@mirik999
Copy link

mirik999 commented Dec 9, 2022

Try:

  1. rm -r -f node_modules
  2. install dependencies again ( npm i or yarn or whatever you use )

@Nguyen-Du-Lap
Copy link

  1. reinstall nodejs
  2. remove node_modules
  3. install dependencies again npm i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants