async-storage: A Problem occured update project : AsyncStorage has been removed from react-native core.

What happened?

getting this issue when i’m trying to update one of my project.

image

Version

1.17.11

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 2.02 GB / 7.84 GB
  Binaries:
    Node: 16.17.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 28, 29, 30, 31, 32, 33
      Build Tools: 28.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0
      System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64, android-33 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: AI-213.7172.25.2113.9014738
    Visual Studio: Not Found
  Languages:
    Java: 18.0.1.1
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.3 => 0.71.3
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

I’m getting this issue when i’ trying to update package from “@react-native-async-storage/async-storage”: “~1.15.0”, to “@react-native-async-storage/async-storage”: “1.17.11”,

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 17 (4 by maintainers)

Most upvoted comments

@MrLokeshKumar @hkrvikrant if you checked the release notes, you’d know that RN71 is supported since 1.17.11 https://github.com/react-native-async-storage/async-storage/releases/tag/v1.17.11 and RN72 from 1.18.1 https://github.com/react-native-async-storage/async-storage/releases/tag/v1.18.1

@tido64 explained to you were the error comes from (and the error message itself did too), and it’s related to you having still imports of the type:

import {AsyncStorage} from "react-native"

It’s not an issue with the library, so this issue should be closed.

What if I have multiple files in that folder? Can you suggest an easy way to check?

This depends on your workflow. If you’re using VS Code, you can use the built-in search feature: https://code.visualstudio.com/docs/editor/codebasics#_search-across-files

If you’re used to the terminal, you can use: grep -R AsyncStorage node_modules/*