shaqian / tflite-react-native

React Native library for TensorFlow Lite
https://www.npmjs.com/package/tflite-react-native
MIT License
289 stars 108 forks source link

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

Open NJ2020 opened 3 years ago

NJ2020 commented 3 years ago

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 commented 3 years ago

i dont know too

GeetanjaliBasakare commented 3 years ago

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 commented 3 years ago

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 commented 1 year ago

Try:

  1. rm -r -f node_modules
  2. install dependencies again ( npm i or yarn or whatever you use )
Nguyen-Du-Lap commented 1 year ago
  1. reinstall nodejs
  2. remove node_modules
  3. install dependencies again npm i