Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: rxjs/Subject"' has no exported member 'Subject' [closed]

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?

like image 783
Lucifer Avatar asked May 13 '18 15:05

Lucifer


1 Answers

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.

like image 96
siva636 Avatar answered Sep 21 '22 18:09

siva636