Error: Can't resolve 'rxjs/add/operator/map'

前端 未结 4 1422
甜味超标
甜味超标 2020-12-29 23:54

This is app.module.ts I have tried to done the Import of map in different project and it worked fine, but in this project it\'s not working.

            


        
4条回答
  •  时光取名叫无心
    2020-12-30 00:20

    In angular 6 import 'rxjs/add/operator/map'; become to:

    import { map } from 'rxjs/operators';
    

    Read here:https://www.academind.com/learn/javascript/rxjs-6-what-changed/

提交回复
热议问题