-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Map & Set Error in 2.5.3 #368
Comments
I'm not completely sure how it can break something. What's the version of Android? Is |
I believe we ran into this as well. Using chrome its fine but on device our android crashes after going from 2.5.1 -> 2.5.3 |
So... Any additional information? |
Debugging this a little bit. Definitely caused by 6f97920. Rolling back to one commit before 771b32d and its fine. The stack trace I see is 'TaskQueue: Error with task: Incompatible receiver, Map required!
_collection-strong.js:120:25
_iter-define.js:26:57
And the react-native code
|
Same issue here, we were getting "resolutions": {
"core-js": "2.5.2"
}, Edit: the resolutions section of the package.json file is a yarn feature! |
There is a js file named BackHandler.Android.js in React-Native, which is used to manage Android BackPress Events. var _backPressSubscriptions = new Set();
RCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function() {
var backPressSubscriptions = new Set(_backPressSubscriptions);
var invokeDefault = true;
var subscriptions = [...backPressSubscriptions].reverse();
for (var i = 0; i < subscriptions.length; ++i) {
if (subscriptions[i]()) {
invokeDefault = false;
break;
}
} Because of this code Reverting back to |
Also see this when running |
run into a related issue I think - although in IE11 and in dev mode with babel, for loops like like downgrading to 2.5.2 fixes IE errors |
If you're seeing this, please take a minute to put together a reproducible example repository that contains code that reproduces the error, it would help a ton in narrowing this down. |
@zloirock This seems to be reproducible with an app that uses jscore (such as React Native) and a babel shimmed |
I put together a few details of another instance of this problem: twilio/TwilioChatJsReactNative#9 If it helps at all, when I turn on react native's remote debugging, the error goes away. I'm also using android 7.1.1. I was able to "fix" it in react native by doing this: yarn add [email protected]
cp -R node_modules/core-js/* node_modules/fbjs-scripts/node_modules/core-js/
cp -R node_modules/core-js/* node_modules/babel-register/node_modules/core-js/
cp -R node_modules/core-js/* node_modules/babel-runtime/node_modules/core-js/
cp -R node_modules/core-js/* node_modules/metro-bundler/node_modules/core-js/ |
i can reproduce this as well. This occurs on Android API 25, Using Android OS 7.1.1 My RN environment is below. Environment: Packages: (wanted => installed) This is an issue with any RN component that uses virtualized list. They use Maps in the implementation if you are using the onViewableItemsChanged prop of the virtualized list. This then brings the error TaskQueue: Map is Required! do what @yamafaktory did and downgrading to 2.5.2 worked for me. Clearly an issue is happening with 2.5.3 and React Native specifically |
I can confirm that this error occurs also with an Angular 5 project using core-js polyfills. |
I can confirm React Native breaks for me with 2.5.3 and works again after downgrad to 2.5.2 |
By looking at what changes from 2.5.2 to 2.5.3 I narrowed the problem down to this change: #236 f96b8d8#diff-cef85cf90f184a55418f175f3c233f2aR219 If I revert FYI @zloirock |
Ok, I was able to reproduce it... only in FF27. Seems the most cases of this issue was caused conflicts with another not completely correct polyfills. I will revert this change and will publish a patch release soon. This logic will be completely rewritten in |
@zloirock thanks! |
Happy to see progress. Thanks
Kenneth Skovhus <[email protected]> schrieb am Do., 22. März 2018,
15:14:
… @zloirock <https://github.com/zloirock> thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#368 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNEhNL8_r6g73gwedxbI4vbd0PQv3ks5tg7GqgaJpZM4RDbdJ>
.
|
Fixed in |
|
core-js/modules/_iter-define.js
Line 33 in e1c6719
With this code, the code below throw error in Android mobile React-Native jscore.
The text was updated successfully, but these errors were encountered: