tunoltd / emoji-mart-native

One component to pick them all 👊🏼
https://tunoltd.github.io/emoji-mart-native
BSD 3-Clause "New" or "Revised" License
86 stars 31 forks source link

Invalid attempt to spread non-iterable instance #197

Open destinybonavita opened 4 years ago

destinybonavita commented 4 years ago

I just randomly started to get the below error printed to console:

Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
- node_modules/@babel/runtime/helpers/nonIterableSpread.js:2:22 in _nonIterableSpread
- node_modules/@babel/runtime/helpers/toConsumableArray.js:10:111 in _toConsumableArray
- node_modules/emoji-mart-native/dist/components/emoji/nimble-emoji.js:1:945 in <global>
- node_modules/promise/setimmediate/core.js:37:14 in tryCallOne
- node_modules/promise/setimmediate/core.js:123:25 in setImmediate$argument_0
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:146:14 in _callTimer
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:194:17 in _callImmediatesPass
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:458:30 in callImmediates
* [native code]:null in callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:407:6 in __callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:143:6 in __guard$argument_0
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:384:10 in __guard
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:142:17 in __guard$argument_0
* [native code]:null in flushedQueue
* [native code]:null in callFunctionReturnFlushedQueue

I'm not sure what would of caused the issue. The only thing I had recently done was update my expo CLI. I forgot to mention I did also add a .d.ts typing file to my project, but that was it. I tried deleting node_modules and reinstalling them all, starting expo while clearing the cache, but neither seem to be helping.

destinybonavita commented 4 years ago

I tried recloning my entire repository in a different directory, still running into the issue. Not sure what happened

destinybonavita commented 4 years ago

Hi so, my app randomly started working again and stopped throwing this error? Not sure how or why it started working again but wanted to let you know. I think this should be kept open in the event it happens again

pederjohnsen commented 4 years ago

@destinybonavita thanks :)

I'll try do some investigation over weekend regardless 👌