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

bmkleine picture bmkleine  路  55Comments

benlesh picture benlesh  路  31Comments

phaux picture phaux  路  32Comments

Guardiannw picture Guardiannw  路  32Comments

benlesh picture benlesh  路  39Comments