Rxjs: import for throwerror

Created on 14 Jun 2018  路  5Comments  路  Source: ReactiveX/rxjs

can anyone tell me what has to be imported for throwError my lint check is failing

question

Most helpful comment

import { throwError } from 'rxjs/internal/observable/throwError'; This worked for me.
import { throwError } from 'rxjs'; This was giving error continuously.

All 5 comments

import { throwError } from 'rxjs';

Thank you for answering this one, @martinsik

import { throwError } from 'rxjs/internal/observable/throwError'; This worked for me.
import { throwError } from 'rxjs'; This was giving error continuously.

@hjjobs What RxJS version you have?

"rxjs": "^6.0.0",
"rxjs-compat": "6.0.0",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OliverJAsh picture OliverJAsh  路  3Comments

dooreelko picture dooreelko  路  3Comments

benlesh picture benlesh  路  3Comments

Zzzen picture Zzzen  路  3Comments

giovannicandido picture giovannicandido  路  4Comments