Skip to main content
Version: 2.5.x

Troubleshooting common problems

TypeError: Cannot convert undefined value to object on someVariable._closure#

This error frequently happens when metro cache is not updated. Clear it with:

watchman watch-del-allyarn start --reset-cache

Also, make sure that you installed the babel plugin.

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

This error shows when you use spread (...array) inside worklets. See Known problems and limitations section for more information about spread support. Depending on how spread is used you may try one of the following alternatives: