You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key part for this, is the arrayProp type is a union type that can be undefined. It causes the following error when calling the generate function from this package:
I think either the t.isUnionNode check needs to be able to handle one of the types in a union being undefined or we need a catch all if (t.isUndefinedNode(node)) check to return the correct type.
The text was updated successfully, but these errors were encountered:
Hi @merceyz - great library! It's been really handy on the project I work on.
We have come across this bug, take a look at this simple example component:
The key part for this, is the
arrayProp
type is a union type that can beundefined
. It causes the following error when calling thegenerate
function from this package:I think either the t.isUnionNode check needs to be able to handle one of the types in a union being
undefined
or we need a catch allif (t.isUndefinedNode(node))
check to return the correct type.The text was updated successfully, but these errors were encountered: