React-select: [V2] Invalid attempt to destructure non-iterable instance

Created on 27 Jun 2018  路  6Comments  路  Source: JedWatson/react-select

It only happens in Android 4.3

Traceback

TypeError: Invalid attempt to destructure non-iterable instance

  • File "webpack:///./node_modules/react-select/dist/react-select.es.js" line 145 col 1 in E
    throw new TypeError("Invalid attempt to destructure non-iterable instance");
  • File "webpack:///./node_modules/react-select/dist/react-select.es.js" line 3445 col 1 in HTMLDocument.onTouchStart
    var _ref2$touches = slicedToArray(_ref2.touches, 1),
issubug-unconfirmed

Most helpful comment

Confirmed this issue on safari - iOS 10
We're using 2.0.0 version.
It happened with 2.1.0 too!

All 6 comments

I'm using 2.0.0-beta.6 version

FWIW, we experience exactly the same error with the same traceback in our app. As reported by Rollbar, it happens on iOS, in Mobile Facebook and Safari

image

We're using 2.0.0 version.

Confirmed this issue on safari - iOS 10
We're using 2.0.0 version.
It happened with 2.1.0 too!

@JedWatson @gwyneplaine do you plan to fix this issue? Any workaround for this?

Maybe consider using item() instead of destructuring touches property of TouchEvent in Select.js#L990 and Select.js#L995?
I suppose the error is thrown by Babel's slicedToArray() helper function (in nonIterableRest())

Can confirm we're seeing this on Safari - iOS 10 with version 2.1.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AchinthaReemal picture AchinthaReemal  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

geraldfullam picture geraldfullam  路  3Comments

steida picture steida  路  3Comments

pablote picture pablote  路  3Comments