I think that you need to import this:
import 'rxjs/add/operator/map'
Or more generally this if you want to have more methods for observables. WARNING: This will import all 50+ operators and add them to your application, thus affecting your bundle size and load times.
import 'rxjs/Rx';
See this issue for more details.
Related Posts:
- Angular 5 to 6 Upgrade: Property ‘map’ does not exist on type Observable
- 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: conditional class with *ngClass
- Can not find module “@angular-devkit/build-angular”
- Difference between Constructor and ngOnInit
- When to use ‘npm start’ and when to use ‘ng serve’?
- 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
- 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’.”
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- Angular: mat-form-field must contain a MatFormFieldControl
- Angular – ng: command not found
- ng is not recognized as an internal or external command
- 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
- No value accessor for form control
- Angular: Error no directive with “exportAs” set to “ngForm”
- ‘ng’ is not recognized as an internal or external command, operable program or batch file
- Kendo Angular Chart change legend position based on size
- 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?
- 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
- 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
- Module not found: Error: Can’t resolve ‘fs’ in
- Property ‘map’ does not exist on type ‘Observable
‘ - Angular 2 – Using ‘this’ inside setTimeout
- How to fix Cannot find module ‘typescript’ in Angular 4?
- ‘router-outlet’ is not a known element
- 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
- Binding select element to object in Angular
- Angular EXCEPTION: No provider for Http
- Error : Cannot find primary outlet to load
- 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?
- Crop the image using JavaScript
- Cannot find module ‘@angular/compiler’
- Angular 2 [hidden] does not seem to be working?
- Local workspace file (‘angular.json’) could not be found. But same code works in another computer
- You have to be inside an angular-cli project in order to use the serve command
- Angular 4 setTimeout() with variable delay and wait
- 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?
- Angular4 core.es5.js Uncaught reflect-metadata shim is required when using class decorators
- How to use date picker in Angular 2?
- 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
- Angular routerLink does not navigate to the corresponding component
- How to use jQuery with Angular?
- Mask for an Input to allow phone numbers?
- What is the best way to delete a component with CLI
- Angular2 – Http POST request parameters
- Angular 2 Sort table columns
- GET http://localhost:4200/null 404 (Not Found) in angular2 with angular-cli
- How to use onBlur event on Angular2?
- Angular design pattern: MVC, MVVM or MV*?
- Module has no exported member error in angular module
- Angular 2 multiple modules
- Electron – Not allowed to load local resource
- How to apply filters to *ngFor?
- Select default option value from typescript angular 6
- Using Angular 2 without TypeScript Transpiler