简体   繁体   English

结合使用ionic 3的AngularFireStore(Angular 5 + rxjs5)

[英]Using AngularFireStore with ionic 3 (angular 5 + rxjs5)

I wanted to use angularfire2 to connect to firebase but I seem to be stuck in a dependency loop. 我想使用angularfire2连接到Firebase,但似乎陷入了依赖循环。

Ionic 3 officially supports up to angular 5, angularfire2 requires rxjs 6, angular 5 supports up to rxjs 5. Ionic 3正式支持最多角度5,angularfire2需要rxjs 6,角度5支持最高rxjs 5。

I can't upgrade to rxjs 6 since it isn't compatible with angular 5 and I can't upgrade to angular 6 since it isn't supported in ionic 3. 我不能升级到rxjs 6,因为它与angular 5不兼容,并且我不能升级到angular 6,因为在ionic 3中不支持它。

I was thinking of upgrading to ionic 4 since a lot of libraries break under my old angular version but I'm afraid ionic 4 beta will introduce even more bugs and my existing plugins my not be compatible. 我一直在考虑升级到ionic 4,因为许多库都在我的旧有角版本下崩溃了,但是我担心ionic 4 beta会引入更多错误,并且我现有的插件不兼容。

Anyone got any idea what's the best course of action? 任何人都知道什么是最好的行动方案?

rxjs-compat should do the trick. rxjs-compat应该可以解决问题。 Your concern about Ionic 4 is valid. 您对Ionic 4的担心是正确的。 I recently attempted the upgrade and found that: 我最近尝试升级,发现:

  1. The guides and tutorials grossly undersell the jump from v3 to v4, both in terms of the conceptual jump (eg Angular components -> web components) and the time involved (eg moving from SASS variables to CSS variables and other CSS tweaks that are necessary can be a lot of work) 从概念上的跳跃(例如Angular组件-> Web组件)和所涉及的时间(例如从SASS变量转移到CSS变量以及其他必要的CSS调整),指南和教程都大大低估了从v3到v4的跳跃很多工作)

  2. Many plugins that I depend on are not yet compatible with v4 (in particular, Angular 7 and RxJS 6) 我依赖的许多插件尚未与v4兼容(尤其是Angular 7和RxJS 6)

Still, the time to do the upgrade is now, just see it as a side project that might take a bit of time and keep your v3 app running well alongside it. 不过,现在是升级的时候了,只是将它视为一个辅助项目,这可能需要一些时间,并使v3应用程序与之同时运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM