Closed hkrvikrant closed 1 year ago
I'm facing the exact same issue on iOS. (I've replaced all imports on my project and it's still showing this error)
async-storage: 1.18.1
me too, please tell me to solve this problem @react-native-async-storage/async-storage: 1.17.11
Hi folks, is this reproducible with a new project? I suspect what's happening is that one of your dependencies are still using AsyncStorage
from react-native
. That is why you're getting this error message.
Hi folks, is this reproducible with a new project? I suspect what's happening is that one of your dependencies are still using
AsyncStorage
fromreact-native
. That is why you're getting this error message.
I changed according to the error message but it still doesn't work.
Hi folks, is this reproducible with a new project? I suspect what's happening is that one of your dependencies are still using
AsyncStorage
fromreact-native
. That is why you're getting this error message.I changed according to the error message but it still doesn't work.
Hi, what I'm trying to say is that you may have a dependency A that is still using the old AsyncStorage
. Or maybe A depends on B and B is the culprit. It's not necessarily in your own code. The only way to check this is to look for occurrences of AsyncStorage
inside your node_modules
folder.
Hi folks, is this reproducible with a new project? I suspect what's happening is that one of your dependencies are still using
AsyncStorage
fromreact-native
. That is why you're getting this error message.I changed according to the error message but it still doesn't work.
Hi, what I'm trying to say is that you may have a dependency A that is still using the old
AsyncStorage
. Or maybe A depends on B and B is the culprit. It's not necessarily in your own code. The only way to check this is to look for occurrences ofAsyncStorage
inside yournode_modules
folder.
What if I have multiple files in that folder? Can you suggest an easy way to check?
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/*
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/*
Not worked this one also
is there any update to support react native version 71, blocked to use async storage
is there any update to support react native version 71, blocked to use async storage
Not yet bro
@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.
i have installed the new dependency and also changed the import to the below, but i still encouter the same error
import AsyncStorage from '@react-native-async-storage/async-storage';
I checked the node_modules for any occurence of "import {AsyncStorage} from "react-native" or "import { AsyncStorage } from "react-native" or "import AsyncStorage from "react-native". There is nothing.
I still get an error event for the Async storage. I upgraded my bare workflow project from SDK47 to SD48
@JovanSr Did you find any solution?
Honestly, I didn't find any solution.
On Tue, Oct 10, 2023, 11:08 PM Herik Arismendy @.***> wrote:
@JovanSr https://github.com/JovanSr Did you find any solution?
— Reply to this email directly, view it on GitHub https://github.com/react-native-async-storage/async-storage/issues/955#issuecomment-1756336358, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVVBD3XEQXTH2YYN7DM43BLX6XBM3AVCNFSM6AAAAAAWU6L44KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWGMZTMMZVHA . You are receiving this because you commented.Message ID: @.*** com>
getting same issue even though I am not using AsyncStorage anywhere in my code.
This issue occurs when something, it doesn't have to be your own code, is using AsyncStorage from React Native. It could be a dependency, or it could be a dependency of another dependency. There are a couple of things you can do to figure out where it's coming from:
AsyncStorage
under your node_modules
folder. Yes, that means checking ALL files. If you have several node_modules
folders, you need to check ALL of them.AsyncStorage
in there.I am going to lock this conversation now because people keep coming in asking for a solution without reading the whole thread. To be perfectly clear, this is not a bug in AsyncStorage. It is a bug in your project.
What happened?
getting this issue when i'm trying to update one of my project.
Version
1.17.11
What platforms are you seeing this issue on?
System Information
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",