tflite-react-native icon indicating copy to clipboard operation
tflite-react-native copied to clipboard

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

Open NJ2020 opened this issue 4 years ago • 5 comments

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.

NJ2020 avatar Oct 29 '20 13:10 NJ2020

i dont know too

projectawesomede avatar Feb 23 '21 19:02 projectawesomede

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.

GeetanjaliBasakare avatar Apr 02 '21 10:04 GeetanjaliBasakare

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"

Sabit-Ahmed avatar Apr 28 '21 16:04 Sabit-Ahmed

Try:

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

mirik999 avatar Dec 09 '22 11:12 mirik999

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

Nguyen-Du-Lap avatar Sep 14 '23 14:09 Nguyen-Du-Lap