question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

self referencing flow type causing infinite loop

See original GitHub issue

While using react-styleguidist, I noticed that I was getting this warning:

Warning: Cannot parse src/components/Button/Button.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

While trying to debug this problem. I was having issues determining where the issue came from. I am using Flow to type my components out and Flow wasn’t reporting an error. However, I learned that the issue was coming from the fact that I had a type that defined a method that had a parameter that was the parent typing. While this works fine in Flow, it appears to cause issues when running through react-docgen.

Here is a slimmed down representation of the problem: Try Flow

Note: You may need to swap the engine to v0.64.0 or master as v0.65.0 is currently broken

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
danezcommented, Feb 17, 2018

Thanks for reporting this. I was easily able to reproduce and fixed the issue in #251 and #252.

Will release a new version soon.

0reactions
danezcommented, Jul 25, 2022

Please create a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Too many child contexts nested" errors or Dataweave files ...
CAUSE. It is not a recommended practice to use self-referencing loops because of two reasons: - Dataweave files only get deleted after a...
Read more >
Entity framework self referencing loop detected - Stack Overflow
When I call my API via /api/Employee, I get this error: The 'ObjectContent`1' type failed to serialize the response body for content type...
Read more >
Infinite Loop in Flow - Power Platform Community - Microsoft
The problem that I have been facing is that as the flow has "Update Item" function at the end of the flow. it...
Read more >
Fixing JSON Self Referencing Loop Exceptions
Here's the real solution to fixing JSON self-referencing loop ... have two models that reference each other and will cause an infinite loop...
Read more >
SELF-REFERENCE IN FINITE AND INFINITE PARADOXES
ing where the self-reference arises. Sorensen shows that with every finite liar paradox there corresponds an infinite Yablo-type paradox, in which self-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found