Skip to content

Latest react-styleguidist only works with a very narrow dependency on react-docgen #1177

Closed
@matthew-dean

Description

@matthew-dean

Current behavior

Since updating Styleguidist to the latest version, I've been getting these errors:

Warning: Cannot parse src/common/presentation/elements/Anchor/Anchor.js: RangeError: Maximum call stack size exceeded

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

Warning: Cannot parse src/common/presentation/elements/Avatar/Avatar.js: RangeError: Maximum call stack size exceeded

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

I found that if I tried a different react-docgen dependency, (Beta 6 AND RC 1), they both fail.

To reproduce

Run npm install [email protected]. Try to build the Styleguide

Expected behavior

Styleguidist should work with newer versions of react-docgen other than just the narrow matching version of beta 12.

Related issue on react-docgen: reactjs/react-docgen#303

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions