Skip to content

Does not recognize a CallExpression. #239

Closed
@ryanpcmcquen

Description

@ryanpcmcquen
| Compiling...Warning: Cannot parse source\containers\ProductCard\ProductCard.js: TypeError: Got unsupported definition type. Definition must be one of ObjectExpression, ClassDeclaration, ClassExpression,VariableDeclaration, ArrowFunctionExpression, FunctionExpression, TaggedTemplateExpression or FunctionDeclaration. Got "CallExpression"instead.

It usually means that react-docgen does not understand your source code, try to file an issue here:
https://github.com/reactjs/react-docgen/issues

When using ReactRedux.connect( containers are returned as CallExpressions. Is there a workaround to make react-docgen recognize them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions