-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursion bug? #80
Comments
+1 I ran into this today as well. Also with local components. @thehydroimpulse did you find any solution? |
@rschmukler I implemented the fix in my fork but instead looked at my design and reworked it to remove the circular dependency. |
@visionmedia Any stance on whether components shouldn't be referencing each other in a circular structure, or is this not behaving as intended? |
hmm, that's usually a little weird, I cant say I've had the need for that in our ~400 components or so but it probably shouldn't break either |
I've just come across this, going down @thehydroimpulse route and going to rework code, so all's cool, but in an effort to be helpful, i made a little crude mock example: https://github.com/Jody-Geers/testing-builder-issue-80-131125 |
Just ran into this too haha... still need to diagnose. edit: haha, fail. required the component itself in the component.json because of |
It appears like there's a recursion bug in the builder.
Let's say you have the following modules:
the
app
component would require (as a dependency - local, that is)module2
andmodule2
would requiremoduleExample
.moduleExample
would then require theapp
component. This creates aRangeError: Maximum call stack size exceeded
error which unfriendly.I guess this would be a circular dependency. A solution (runtime isn't the issue, I have that sorted out, it's just compilation that needs to work) would be to skip an already processed component. So when
app
is processed the second time you can skip it.Thoughts? (I can submit a PR if you'd like)
The text was updated successfully, but these errors were encountered: