tflite-react-native
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'
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"
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.
i dont know too
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.
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"
Try:
-
rm -r -f node_modules
- install dependencies again (
npm i
oryarn
or whatever you use )
- reinstall nodejs
- remove node_modules
- install dependencies again npm i