Angular 6 and AngularFire2 RxJS Error

筅森魡賤 提交于 2019-12-04 12:03:57

now work with

npm install --save rxjs-compat
Punitkumar Kulli

Install the following file

npm install --save rxjs-compat

Add following code in polyfills.ts (window as any).global = window;

npm install --save @rxjs-compat@5.0

You've to fix your Rxjs imports. There are some changes in the use of rxjs from v6 onwards. so, Kindly import the observable as below

import { Observable } from 'rxjs';

instaed of import { Observable } from 'rxjs/Observable';

Hope this will fix your issue. Happy coding :)

npm i --save rxjs-compat helps!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!