Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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..

like image 606
xDrago Avatar asked May 16 '20 13:05

xDrago


1 Answers

I have the same exact issue

Date: 2020-07-27T07:45:39.650Z - Hash: 674c36d8cc4fe0a89c1d - Time: 39499ms
ERROR in : Directive QuillEditorBase in /Users/louie/Development/mobile/node_modules/ngx-quill/ngx-quill.d.ts has no selector, please add it!
: Cannot determine the module for class QuillEditorBase in /Users/louie/Development/mobile/node_modules/ngx-quill/ngx-quill.d.ts! Add QuillEditorBase to the NgModule to fix it.
[ERROR] An error occurred while running subprocess ng.

Since I am using Ionic Cordova 4 with Angular ~8.1.2 and "quill": "^1.3.7", "ngx-quill": "^12.0.0".

I checked the documentation of quill and found this.

Compatibility to Angular Versions
Angular ngx-quill   supported
v10 >= 12.0.0   until Feb 24, 2022
v9  >= 8.0.0    until Aug 06, 2021
v8  >= 5.2.0, < 9   until Nov 28, 2020

So, in order to resolve the issue I have. I downgraded ngx-quill from v12.0.0 to 5.2.0. And it compiled successfully after.

like image 54
Louie Miranda Avatar answered Nov 15 '22 05:11

Louie Miranda