I have this code:
import { Subject } from 'rxjs/Subject';
After importing this, I get the error
rxjs/Subject" has no exported member 'Subject'.
I am not able to resolve this.
Could anybody suggest a solution?
It looks you use RxJS v6. In v6, the way you import resources has been made much more easy. Your import should be like the following:
import {Subject} from 'rxjs';
For more details read the migration guide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With