After installing rxjs 5 beta 3 through npm, using the command
npm i <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2f5d57455c6f1a011f011f024d4a5b4e011c">[email protected]</a>
, I encountered an issue with operator recognition in my IDE.
Here is a snippet of the code causing trouble:
import {Observable} from "rxjs"
new Observable(o => o.next(42)).filter(() => true);
While this code compiles correctly with ts-node, IntelliJ IDEA fails to recognize the filter()
operator and other operators when used on an Observable instance.
The static members suggested for Observable
are:
create()
if()
throw()
And for an instance of Observable
:
_isScalar()
forEach()
lift()
subscribe()
Even after trying to import only necessary components, IntelliJ IDEA continues to flag filter()
as non-existent:
import {Observable} from "rxjs/Observable"
import "rxjs/add/operator/filter"
new Observable(o => o.next(42)).filter(() => true);
Does anyone have any suggestions on how to resolve this issue in IntelliJ IDEA?