Operator chaining has been transitioned to the use of .pipe() in RXJS v6, you should follow the recommended migration path for RXJS. Additionally, the catch operator has been renamed to catchError.
Here is how it should be done now:
const request = this.evidenceService.get().pipe( map((res) => res.data)), catchError(error => Observable.of(null)) );
Related Posts:
- Angular HTTP GET with TypeScript error http.get(…).map is not a function in [null]
- What is pipe for in RxJS?
- BehaviorSubject vs Observable?
- What is the difference between Promises and Observables?
- node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ‘;’ expected error after installation of Angular 6
- What does the .subscribe() function do?
- Angular: ‘Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays’
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Angular, image not found (GET 404)
- Could not find module “@angular-devkit/build-angular”
- Angular: conditional class with *ngClass
- Can not find module “@angular-devkit/build-angular”
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Difference between Constructor and ngOnInit
- AngularJS vs Angular [closed]
- When to use ‘npm start’ and when to use ‘ng serve’?
- Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- ExpressionChangedAfterItHasBeenCheckedError Explained
- Angular 10 – can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- How to use *ngIf else?
- ngFor with index as value in attribute
- How to upgrade Angular CLI to the latest version
- Missing write access in mac to /usr/local/lib/node_modules
- Angular: Get current index in ngFor
- What is .subscribe in Angular?
- What is an unhandled promise rejection?
- forbidden 403 on image URLS
- Angular 6 “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’.”
- ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- Angular: mat-form-field must contain a MatFormFieldControl
- (change) vs (ngModelChange) in angular
- Angular – ng: command not found
- mat-form-field must contain a MatFormFieldControl
- ng is not recognized as an internal or external command
- Angular File Upload
- Angular map. What is it?
- formSelect() method in materialize does’nt work in angular 6 inputs
- ERROR Error: No value accessor for form control with unspecified name attribute on switch
- VSCode cannot find module ‘@angular/core’ or any other modules
- form control error:ERROR Error: No value accessor for form control with unspecified name attribute
- “You seem to not be depending on “@angular/core”.”
- Cannot find module ‘@angular-devkit/core’
- You seem to not be depending on “@angular/core” and/or “rxjs”. This is an error
- No value accessor for form control
- Unable to resolve dependency tree error when installing npm packages
- Angular: Error no directive with “exportAs” set to “ngForm”
- Angular ForEach in Angular4/Typescript?
- Angular 4 setting selected option in Dropdown
- ‘ng’ is not recognized as an internal or external command, operable program or batch file
- Kendo Angular Chart change legend position based on size
- Angular4 – No value accessor for form control
- Angular: conditional class with *ngClass
- Why do i need `typings.json` file in an Angular 2 project?
- TypeScript-‘s Angular Framework Error – “There is no directive with exportAs set to ngForm”
- Angular 2 Cannot find control with unspecified name attribute on formArrays
- error: This is probably not a problem with npm. There is likely additional logging output above
- Unexpected value ‘undefined’ declared by the module ‘AppModule’
- I get “Http failure response for (unknown url): 0 Unknown Error” instead of actual error message in Angular
- Angular: conditional class with *ngClass
- Where to place/find the systemjs.config.js file in an angularJS2 project?
- ng serve does not work
- What is the equivalent of ngShow and ngHide in Angular 2+?
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- document.getElementById replacement in angular4 / typescript?
- how to refresh page in angular 2
- What is ViewChild in Angular2?
- TS1086: An accessor cannot be declared in ambient context
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Module not found: Error: Can’t resolve ‘fs’ in
- Property ‘map’ does not exist on type ‘Observable
‘ - Angular2 Error: There is no directive with “exportAs” set to “ngForm”
- Angular 2 – Using ‘this’ inside setTimeout
- How to fix Cannot find module ‘typescript’ in Angular 4?
- ‘router-outlet’ is not a known element
- Angular: Cannot find a differ supporting object ‘[object Object]’
- Angular 2 Cannot read property ‘config’ of null
- Error when trying to inject a service into an angular component “EXCEPTION: Can’t resolve all parameters for component”, why?
- Set focus on element
- Cleanest way to reset forms
- Angular2 CLI error “@angular/compiler-cli” package was not properly installed
- Angular2 – How to create a simple table
- No provider for HttpClient
- Binding select element to object in Angular
- Angular material Could not find Angular Material core theme
- Angular EXCEPTION: No provider for Http
- Error : Cannot find primary outlet to load
- cannot find module ‘@angular/http’?
- Templating with href in angular (4)
- How to implement sleep function in TypeScript?
- Angular 2 : No NgModule metadata found
- How to set Angular 4 background image?
- Angular 2 Checkbox Two Way Data Binding
- File Upload In Angular?
- is there any alternative for ng-disabled in angular2?
- SyntaxError: Unexpected token C in JSON at position 0 – Ionic 2 Http GET request
- Angular 2.0 and Modal Dialog
- Crop the image using JavaScript
- Cannot find module ‘@angular/compiler’