March 2, 2018
The ‘this’ context of type ‘void’ is not assignable to method’s ‘this’ of type ‘Observable<{}>‘.
If you are experiencing this error – usually something with your RxJS imports is wrong. So you should go through them manually or simply delete all imports from RxJS in the corresponding file and let the IDE generate them again. Something broken could look like this:
1 2 |
import {map} from 'rxjs/add/operator/map'; |
Better working might be:
1 2 |
import {map} from 'rxjs/operators'; |
What is happening? RxJS […]
READ MORE