-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
storage-rn: Incorrect interop require expressions in CJS #3250
Comments
@kitten Thanks a lot for this blazing fast fix :) |
@oliverdolgener No worries! Would you like to give |
@kitten unfortunately the app now crashes with |
@oliverdolgener Did some more digging and 7a11714 should fix this for the As before |
Describe the bug
With the update to v1.0.1 the read / write operations fail. (undefined is not an object). v1.0.0 works fine.
The issue seems to come from the transpiled ts files in the dist folder. I noticed a change in the way the Async Storage is called:
v1.0.0: persistedData = await AsyncStorage__default["default"].getItem(dataKey);
v1.0.1+: persistedData = await AsyncStorage.getItem(dataKey);
For some reason Async Storage cannot be found after upgrading to v1.0.1+
Reproduction
Urql version
urql 4.0.3
Validations
The text was updated successfully, but these errors were encountered: