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’
- Angular, image not found (GET 404)
- Could not find module “@angular-devkit/build-angular”
- Angular: conditional class with *ngClass
- 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’
- Missing write access in mac to /usr/local/lib/node_modules
- Angular: Get current index in ngFor
- What is .subscribe in Angular?
- 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
- 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
- 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
- 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
- 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’
- ng serve does not work
- What is the equivalent of ngShow and ngHide in Angular 2+?
- document.getElementById replacement in angular4 / typescript?
- how to refresh page in angular 2
- What is ViewChild in Angular2?
- 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
- 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
- Set focus on element
- Cleanest way to reset forms
- Angular2 CLI error “@angular/compiler-cli” package was not properly installed
- No provider for HttpClient
- Angular material Could not find Angular Material core theme
- 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?
- How to set Angular 4 background image?
- 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
- Implement session storage in an Angular 8 application
- Angular 2 [hidden] does not seem to be working?
- Can’t bind to ‘routerLink’ since it isn’t a known property
- How to use bootstrap 4 in angular 2?
- How to get current route
- How to use if-else condition with [ngClass] in angular 7?
- How to integrate WordPress with Angular 8 for website?
- What is Angular Routing?
- Angular error: Please add a @NgModule annotation
- How to enable production mode?
- Angular 2 Hover event
- Angular 5: “No provider for ControlContainer”
- Getting No provider for NgControl Error after adding ReactiveFormsModule to my angular 4 app
- How to use `trackBy` with `ngFor`
- Why do i need `typings.json` file in an Angular 2 project?
- Mask for an Input to allow phone numbers?
- How do I download a file with Angular2 or greater
- What are differences between SystemJS and Webpack?
- What is the best way to delete a component with CLI
- Angular2 – Http POST request parameters
- How to use forEach loop correctly in angular 2?
- Angular 2 Sort table columns
- How to use onBlur event on Angular2?
- How do I install Angular 2 using NPM?
- Check if Variable is Empty – Angular 2
- How to apply filters to *ngFor?
- Using Angular 2 without TypeScript Transpiler
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject