You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear support team!
I have error when build web app from expo workspace
You may need an additional loader to handle the result of these loaders.
| function createPromiseAll(promises, callback, processResult) {
| return Promise.all(promises).then(result => {
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear support team!
I have error when build web app from expo workspace
You may need an additional loader to handle the result of these loaders.
| function createPromiseAll(promises, callback, processResult) {
| return Promise.all(promises).then(result => {
| callback === null || callback === void 0 ? void 0 : callback(null, value);
| return Promise.resolve(value);
at ../node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js (within.js:8:1)
Solutions:
patch file
diff --git a/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js b/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js
index cf33895..8b6354b 100644
--- a/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js
+++ b/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js
@@ -39,9 +39,9 @@ function createPromise(getValue, callback) {
}
});
}
-function createPromiseAll(promises, callback, processResult) {
+function createPromiseAll(promises, callback, processResult = null) {
return Promise.all(promises).then(result => {
callback === null || callback === void 0 ? void 0 : callback(null, value);
return Promise.resolve(value);
}, errors => {
Hope it will be useful to everyone
Thank
Beta Was this translation helpful? Give feedback.
All reactions