【问题标题】:ng2-opd-popup issue with angular4angular4 的 ng2-opd-popup 问题
【发布时间】:2018-08-17 16:22:48
【问题描述】:

我安装了 ng2-opd-popup 模块并尝试通过导入“PopupModule.forRoot()”从 app.module.ts 导入 if。它会产生以下错误。

我使用 typescript 版本为 2.4.2 和 rxjs 版本为 5.4.2。 我尝试使用rxjs/Subject.d.ts error : Class 'Subject<T>' incorrectly extends base class 'Observable<T>'How do I get around this "Subject incorrectly extends Observable" error in TypeScript 2.4 and RxJS 5.x? 中的给定解决方案来修复它。这两种解决方案都不适合我。任何人都可以提出任何建议来解决这个问题吗?

我在这里应用了 ng2-opd-popup 模块,以使用按钮单击事件作为我的目的来弹出窗口。

【问题讨论】:

    标签: html angular typescript rxjs


    【解决方案1】:

    tsconfig.json文件中添加以下代码sn-p

    {
    "compilerOptions" : {
    noStrictGenericChecks : true
    }
    }
    

    它可能会帮助你生存

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-20
      • 2018-07-31
      • 2017-06-29
      • 2018-03-06
      相关资源
      最近更新 更多