Trying to upgrade to sdk32 I have this error “Invalid attempt to spread non-iterable instance”. More details here : with expo sdk32 : invalid attempt to spread non-iterable instance · Issue #58 · DesignmanIO/react-native-meteor-offline · GitHub
It seems to come from babel handling spread …
1 Like
Hi, could you share your .babelrc please ?
Thanks
Here it is
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-class-properties"]
}
}
}
Alex found that it was due to lodash _.omit
that returns an object instead of expected array, replaced with _.without
seems to solve this issue
const withoutRemoved = _.omit(
state.reactNativeMeteorOfflineRecentlyAdded,
removed
);
replaced by
const withoutRemoved = _.without(
state.reactNativeMeteorOfflineRecentlyAdded,
...removed
);
1 Like
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.