Closed
Description
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