Skip to content
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

[V2] Invalid attempt to destructure non-iterable instance #2755

Closed
ppascualv opened this issue Jun 27, 2018 · 6 comments
Closed

[V2] Invalid attempt to destructure non-iterable instance #2755

ppascualv opened this issue Jun 27, 2018 · 6 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@ppascualv
Copy link

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),
@jossmac jossmac added issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet v1 labels Jul 5, 2018
@jossmac jossmac changed the title [BUG] Invalid attempt to destructure non-iterable instance Invalid attempt to destructure non-iterable instance Jul 5, 2018
@ppascualv
Copy link
Author

ppascualv commented Jul 6, 2018

I'm using 2.0.0-beta.6 version

@ppascualv ppascualv changed the title Invalid attempt to destructure non-iterable instance [V2] Invalid attempt to destructure non-iterable instance Jul 26, 2018
@amytych
Copy link

amytych commented Sep 6, 2018

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.

@kuongknight
Copy link

kuongknight commented Oct 18, 2018

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

kuongknight added a commit to kuongknight/react-select that referenced this issue Oct 18, 2018
@xakep139
Copy link
Contributor

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

@xakep139
Copy link
Contributor

xakep139 commented Nov 26, 2018

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())

xakep139 added a commit to xakep139/react-select that referenced this issue Dec 5, 2018
@siod
Copy link

siod commented Dec 14, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

6 participants