Ionic/Angular 对话框错误 - 无效 link:DialogView

Ionic/Angular dialog error - invalid link: DialogView

我正在通过创建一个 stackblitz 演示应用程序来调试我的应用程序中的问题。我被卡住了,无法弄清楚为什么当我点击打开对话框时,我得到了这个问题标题中提到的错误。

我在 home.ts 中打开这样的对话框:

 openDialog(){
    const resetModal : Modal = this.modal.create('DialogView', { arr: this.arr, callback: this.theCallback.bind(this) });
    resetModal.present();
  }

它说 DialogView 是无效的 link 尽管我已经正确地(貌似)导入了它。有什么问题吗?

这是 stackblitz 的 link:

https://stackblitz.com/edit/ionic-kdzcwt?file=pages/home/home.ts

您应该从 'DialogView'DialogView 中删除单引号。单引号仅用于具有自己模块的延迟加载页面