-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Circular reference between Observable and others #899
Comments
Not sure if #894 is related or not.. |
It's probably #894. TypeScript is pretty good about hoisting dependencies that would otherwise be circular.
|
Did couple of try, seems #894 and this need to be updated both. even import |
Changed subject to describe this more general, such as
and lot of others. This reference could possibly cause runtime reference resolve issue as described above and also noticeably increases build times. Tried to solve this via simple ambient declaration but wasn't work as expected, ambient merging seems possible way but still need to prove. |
@kwonoj Just a quick comment, dunno if it's relevant, I introduced this circular import with #863 and to deal with it I updated the KitchenSink and Rx files to move the Subject import before Observable. I made a comment to that effect in the discussion and in the checkin notes. Until I reordered these imports, I was seeing the same error. |
@ntilwalli I assume top-level (Rx / Kitchensink) is also somewhat related, but not critical at this moment. This issue is specific for module-level import (i.e, import observable only, or something else) to make reference resolve failure to work with specific module. Once this is cleanly resolved, may able to visit top level module also using similar approaches. |
@jeffbcross ran a circular dependency check on #912 and found it was green. So that PR is likely all we need to clear this issue. Also, we're going to add some sort of circular dependency checking to the test build. (again, @jeffbcross) |
PR for ci check: #917 |
#912 closes this. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Observable.ts
Subject.ts
ends up with below snippet
Subject does not resolves reference to Observable.
The text was updated successfully, but these errors were encountered: