New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsyncStorage not available in RNW 0.12 #6654
Comments
Hi! Sorry, but the Notifications module isn't available for web. I'll update the docs to reflect that Otherwise, hard to say what could be going on here without all the info we ask for in the bug report template. This snack uses AsyncStorage on web without an issue, so you might try debugging with it. If you still have problems, please provide a full repro and I can reopen |
It's not explicitly supported. We have some code around it, but it's not a full implementation yet |
Ah, thanks for the clarification 😊 |
Even when not importing the |
Yep - I searched my project for "import.*Notification" and nothing came up. I think this might be getting pulled in as a recursive dependency through another file that is web compatible, which is causing the problems. Are there any guards in place to prevent Notifications from being pulled in as a transitive dependency of web-compatible files? |
@cruzach are you sure that the bug issue should be marked closed? |
@cruzach Please reopen this issue, I'm also having the same problem |
If you're having this issue, please share a minimal reproducible demo For those using react-native-web |
I think we've established that the issue arises when people update their |
the deprecated please see: |
Browsers have native storage support that should be easy to implement. This is also perhaps relevant for expo secure storage web support. |
- Issue is expo web currently expo/expo#6654
I am facing the same issue as well. did you guys find a workaround |
Note that this is NOT a secure storage method, but an unsecure drop-in you could use for non sensitive items:
|
this would be addressed by #8315 |
Still having this issue after installing react-native-community/async-storage web Failed to compile.
Its highly difficult for a newcomer to find the answer as all closed comments led to hopping back and forth between multiple pages with no definitive solution. |
- Issue is expo web currently expo/expo#6654
* Upgrade expo sdk to 37 * RootStackNavigator coverage for dark mode * Upgrade packages - Issue is expo web currently expo/expo#6654 * Correctly import styled-component from /native package * Remove unused packages * Upgrade packages and downgrade react-native-web to 0.11
This is fixed in SDK 38 |
Hi Team,
I'm getting the below mentioned error when i try run application in the web mode.
/node_modules/expo/build/Notifications/Notifications.js
Module not found: Can't resolve 'react-native-web/dist/exports/AsyncStorage' in '/Users/i322865/node_modules/expo/build/Notifications'
I'm using the latest expo(0.36, same error i faced when i was using 0.35 version as well) and react native web 0.12.0-rc.1. Please help to solve this issue and let me know if you require any further details
Regards,
Sharath
The text was updated successfully, but these errors were encountered: