angularquillngx-quill

Ngx-Quill ERROR in Directive QuillEditorBase


i followed the basic steps to set up ngx-quill. I installed ngx-quill and quill additionally afer some research. But I still get the same error.

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.

I use the eidtor simply with <quill-editor></quill-editor>

The component where i use it is lazy-loaded. I added QuillModule.forRoot() to the imports of my main module and also tried it to add it to my lazy-loaded module instead. Then I tried to add it to both and I also tried to add it without forRoot(). The error stays the same. I dont know where I should add QuillEditorBase to the ngmodule.

What am I doing wrong? I have no custom configuration. I just installed it and wanted to try to get it wto work..


Solution

  • Thanks @bryan60 for the hint. It was indeed a version mismatch. I installed the newest version of quill but was running on angular 8 which requires a quill version < 10 and is mentioned in their docs. I updated to Angular 9 and it worked.