我按照基本步骤设置 ngx-quill。经过一些研究,我还安装了 ngx-quill 和 quill。但我仍然得到同样的错误。
ERROR in Directive QuillEditorBase in .../node_modules/ngx-quill/ngx-quill.d.ts has no selector, please add it!
Cannot determine the module for class QuillEditorBase .../node_modules/ngx-quill/ngx-quill.d.ts! Add QuillEditorBase to the NgModule to fix it.
我简单地使用 eidtor<quill-editor></quill-editor>
我使用它的组件是延迟加载的。我添加QuillModule.forRoot()
到我的主模块的导入中,并尝试将它添加到我的延迟加载模块中。然后我尝试将它添加到两者中,我也尝试添加它而不添加forRoot()
. 错误保持不变。我不知道应该在哪里将 QuillEditorBase 添加到 ngmodule。
我究竟做错了什么?我没有自定义配置。我刚刚安装它并想尝试让它工作..