-
Notifications
You must be signed in to change notification settings - Fork 14
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cyclic dependencies in es6 modules #871
Comments
Handled, we're now uncommenting those require statements and it's working nicely. Keeping open to handle cleanup after full migrate, but dropping priority. |
Balloons and static electricity exhibits a problem where |
From slack: Jonathan Olson 5:55 PM Sam Reid 6:00 PM Jonathan Olson 6:01 PM Sam Reid 6:02 PM |
Created phetsims/scenery#1038 for handling that case. I presume we aren't running into any other issues? |
As far as I can tell, this only triggered in Balloons and Static Electricity, and the workaround I committed seems to be working OK. |
@jonathanolson is there anything to do here? @samreid thinks this might be ready to close. |
Keeping it open for #871 (comment), since things like Vector2/Vector3 will want to not JUST import each other, but USE those imports (which I can't do easily in master before migration). |
…y, and adding svgns/xlinkns for namespaces. See phetsims/chipper#871
Handled most circular dependency issues. Things like Block/Drawable seem like an issue (where interestingly if we try to import Block from Drawable, it will fail out and I can't identify where that import would cause issues. @samreid thoughts to continue? |
The above commit seems to resolve scenery builds, but that's really concerning. @samreid have time to discuss this sometime? |
Since the commit includes sorting, it is difficult to tell what part is concerning. Can you please clarify? |
That removing the import for ParallelDOM in the scenery main.js now allows it to run correctly after building. And the fact that there were a lot of reasons I couldn't add back in all the imports we wanted (Block/Drawable being most easy to reproduce). |
We discussed this in the 6/4/202 dev meeting and the memorable quote was "[T]his is low priority until it becomes a problem." So, we are going to mark it as deferred and assign it to @ariel-phet. He'll set a reminder to check it in six months and, if it's not a problem by then, we will close it. |
Calendar reminder set |
…y, and adding svgns/xlinkns for namespaces. See phetsims/chipper#871
I'll investigate commented-out require statements, we can potentially just uncomment those and test.
After the fact, I'll also want to do some cleanup in those cases
The text was updated successfully, but these errors were encountered: