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
Incorrect Implicit Types - Push and Let directives #795
Comments
Hey @wSedlacek , thanks for the issue! Could you, please, provide a minimal reproducible example or elaborate more on the question (e.g. what version are you using)? I've just tried to reproduce your issue with But I was able to reproduce the |
I'll get repo up. Thanks for looking into it! |
So I have narrowed down the issue to only occurring when using the View Engine for the Angular Language Service. Version
Reproduction |
Just FYI, I believe there is currently a regression in Angular itself, even with the patched version this is not working right now: |
The linked issue of the language service is unrelated to types and there's no regression on types that we're aware of. It sounds like this is likely due to not having the correct compiler options enabled to get the most specific types. Can you try enabling |
@atscott I will reply there. |
Hi, I am also having troubles with push pipe typing in 1.0.0-beta.25: the value it produces is typed as any. Is there any reason to specify the |
I resolved the issue with rxLet by updating my VisualStudio code and the Angular Language Service extension... though it wasn't particularly obvious that the extension had been updated. I had to go the the extension page and press the "reload required" button. Oh, and I had to add strictTemplates: true |
I've also discovered that sometimes the VSCode workspace seems to get "corrupted" and the Angular Language Service stops working properly on external directives like this. I re-created the workspace with default settings and it started to work again. |
So ill close this one as not a bug anymore. Feel free to reopen at any time. |
Hi again. I am using Intellij Idea, not VSCode, and I could not find a solution to resolve this issue from my side. I tried editing the source code of the push pipe (added |
There seems to be some thing going on with the types the Angular Language Service is picking up for these directives.
Push Directive
rx-angular/libs/template/src/lib/push/push.pipe.ts
Lines 112 to 137 in d27cc66
Example
Angular Reference
Async Pipe
Let Directive
rx-angular/libs/template/src/lib/let/let.directive.ts
Lines 457 to 466 in d27cc66
Example
Angular Reference
NgIfContext
The text was updated successfully, but these errors were encountered: