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.

Unable to resolve "@react-native-community/async-storage" from "node_modules\@tensorflow\tfjs-react-native\dist\async_storage_io.js"

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device : Honor7x
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version: 2.7.0

Description:

Importing fetch from @tensorflow/tfjs-react-native resulting in above issue.

I am getting this issue when I import only. I did follow the exact steps as in docs.

Please see the screenshot below: WhatsApp Image 2020-11-19 at 2 57 16 PM

Package Dependencies :

 "dependencies": {
    "@react-native-async-storage/async-storage": "^1.13.2",
    "@tensorflow-models/mobilenet": "^2.0.4",
    "@tensorflow/tfjs": "^2.7.0",
    "@tensorflow/tfjs-react-native": "^0.5.0",
    "expo": "~39.0.2",
    "expo-camera": "^9.0.0",
    "expo-constants": "^9.2.0",
    "expo-gl": "^9.1.1",
    "expo-gl-cpp": "^9.1.2",
    "expo-image-picker": "^9.1.1",
    "expo-permissions": "^9.3.0",
    "expo-status-bar": "~1.0.2",
    "jpeg-js": "^0.4.2",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz",
    "react-native-fs": "^2.16.6",
    "react-native-web": "~0.13.12"
  },

Please help me how to resolve this issue.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AliButtarcommented, Jun 2, 2021

@tafsiri This issue has been open for over 6 months. Would love it if you can make this your priority. Can’t use BundleResourceIO and load models at all because this dependency hasn’t been updated yet

1reaction
linkian209commented, May 8, 2021

Is there any update regarding this? It is difficult to start a new project because of how far back in versioning for several libraries you have to go back to support this particular piece.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module @react-native-community/async ...
I am really new to react native, this may be a common issue but I can't seem to find anything that helps. javascript...
Read more >
Error: Unable to resolve module `@react-native-community ...
js : @react-native-community/async-storage could not be found within the project. I installed react-native comet chat and try to call it in ...
Read more >
react-native-community/async-storage - npm
An asynchronous, unencrypted, persistent, key-value storage system for React Native. Supported platforms. iOS; Android; Web · MacOS · Windows ...
Read more >
unable to resolve module react native - You.com | The search ...
`unable to resolve module @react-native-community/async-storage` broke down my React Native ... This is how the project test App.js was for the test:.
Read more >
@react-native-community/async-storage - npm package | Snyk
Learn more about @react-native-community/async-storage: package health score, popularity, security, maintenance, versions and more.
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