ERROR Warning: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
fai07600521 opened this issue · 26 comments
What happened?
I got this error every time I delete and run start my application I try everything but it's no hope please help me
Version
"@react-native-async-storage/async-storage": "^1.24.0""@react-native-async-storage/async-storage": "^1.24.0"
What platforms are you seeing this issue on?
- Android
- iOS
- macOS
- Windows
- web
System Information
Bridgeless mode is enabled
(NOBRIDGE) ERROR Warning: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
To fix this issue try these steps:
• Uninstall, rebuild and restart the app.
• Run the packager with --reset-cache flag.
• If you are using CocoaPods on iOS, run pod install in the ios directory, then rebuild and re-run the app.
• Make sure your project's package.json depends on @react-native-async-storage/async-storage, even if you only depend on it indirectly through other dependencies. CLI only autolinks native modules found in your package.json.
• If this happens while testing with Jest, check out how to integrate AsyncStorage here: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
If none of these fix the issue, please open an issue on the GitHub repository: https://github.com/react-native-async-storage/async-storage/issues
INFO
💡 JavaScript logs will be removed from Metro in React Native 0.77! Please use React Native DevTools as your default tool. Tip: Type j in the terminal to open (requires Google Chrome or Microsoft Edge).
(NOBRIDGE) LOG Running "SampleApp" with {"rootTag":1,"initialProps":{"concurrentRoot":true},"fabric":true}
(NOBRIDGE) ERROR Invariant Violation: "SampleApp" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and AppRegistry.registerComponent wasn't called. it don't work none of every work I frustrate already please help me straight
Steps to Reproduce
just delete app and install everything and run start the app
I'm experiencing the same issue. Any help would be greatly appreciated!
Same here, I have "@react-native-async-storage/async-storage": "^2.1.1", installed, and it's working correctly but fails while running tests.
● Test suite failed to run
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
To fix this issue try these steps:
• Uninstall, rebuild and restart the app.
• Run the packager with `--reset-cache` flag.
• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory, then rebuild and re-run the app.
• Make sure your project's `package.json` depends on `@react-native-async-storage/async-storage`, even if you only depend on it indirectly through other dependencies. CLI only autolinks native modules found in your `package.json`.
• If this happens while testing with Jest, check out how to integrate AsyncStorage here: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
If none of these fix the issue, please open an issue on the GitHub repository: https://github.com/react-native-async-storage/async-storage/issues
...
> 3 | import AsyncStorage from '@react-native-async-storage/async-storage';
...unistalling the app and installing it doesn't work
I'm getting the same, re-installing doesn't work
I'm experiencing the same issue. Any help would be greatly appreciated!
"@react-native-async-storage/async-storage": "^2.1.1",
Stop the Metro bundler and restart it using the --reset-cache command.
Open a new terminal tab and run npx react-native run-android.
still doesn't work
I uninstalled the last version, installed the new version, and now it works.
i have totally reinstalled and still get the same error.
I have same issue. Several times clear cache, reinstalled. But this error still exists.
