In my angular2 component, I have
import * as Rx from '@reactivex/rxjs';
The Visual Studio complaints that 'Cannot find module @reactivex/rxjs'
I see that @reactivex\rxjs is installed under node_modules under angular2. The following is the folder structure.
How can I fix so I can use Rx in the component?
A similar issue from Github.
Which version of alpha are you using? I am using Alpha-45 and the following works for me: import * as Rx from "@reactivex/rxjs/dist/cjs/Rx";