Closed vkarpov15 closed 2 years ago
Sounds like a bug in their transpiler; this is not the right place to change.
Angular Universal team says that their transpiler is "correct" :( https://github.com/angular/angular-cli/issues/21735#issuecomment-915974013 Whether it actually is, is open to debate.
I think this PR is sufficiently low risk and unobtrusive to merge and unblock users. Can you please reconsider?
No, sorry, this is valid code and we won't change it because some tooling is doing something strange with it.
Sorry for the somewhat odd PR, but this issue is making the MongoDB Node driver and Mongoose fail in Angular Universal. Angular Universal does some strange transpiling that breaks how this lib is getting AsyncIteratorPrototype.
I tracked this down from https://github.com/Automattic/mongoose/issues/11155, https://github.com/angular/angular-cli/issues/21735, and opened a PR to work around this issue in Angular here: https://github.com/angular/angular-cli/pull/22550.