undefined is not an object (evaluating '_toConsumableArray(Array(length)).map')
See original GitHub issueDescription
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
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:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For some reason spread and rest operators works for me with latest releases of both Reanimated and React Native. I’ll double check
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.