question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object (evaluating '_toConsumableArray(Array(length)).map')

See original GitHub issue

Description

I’ve been receiving the error undefined is not an object (evaluating '_toConsumableArray(Array(length)).map') and I have no idea where it comes from. I’ve tried to not render anything but the error still persists. It must be one of the worklets (useDerivedValue, useAnimatedStyle) because it’s being thrown async (after the render func returns)

Screenshots

Simulator Screen Shot - iPhone 11 - 2020-09-21 at 09 52 53

Steps To Reproduce

Working on a repro.

Expected behavior

Actual behavior

Snack or minimal code example

Package versions

  • React: 16.13.1
  • React Native: 0.63.2
  • React Native Reanimated: 2.0.0-alpha.6

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
terrysahaidakcommented, Sep 21, 2020

For some reason spread and rest operators works for me with latest releases of both Reanimated and React Native. I’ll double check

1reaction
mrousavycommented, Sep 21, 2020

I’ll finish my implementation, then I’ll help debug this. Would be good to support this on hermes since RN 0.64 will ship with hermes opt-in on iOS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not an object (evaluating 'items.map')
After receiving items, the following error occurs. At the moment I'm just learning and have looked at other answers on this topic, nothing...
Read more >
Array.prototype.slice() - JavaScript - MDN Web Docs
The slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end...
Read more >
Converse.js API Documentation Source: headless/dist ...
isArray(two)) { return false; } // arrays can't be equal if they have different amount of content if (one.length !== two.length) { return...
Read more >
MediaWiki:Gadget-XFDcloser-core.js - Wikipedia
internals/is-object");module.exports=function(it){if(!isObject(it))throw ... of empty array with no initial value")}for(;IS_RIGHT?0<=index:index<length ...
Read more >
vis-network.min.js.map - UNPKG
node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js",". ... (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found