我按照基本步骤来建立ngx-quill。经过一些研究,我还安装了ngx和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.我简单地和<quill-editor></quill-editor>一起使用eidtor
我使用它的组件是延迟加载的。我将QuillModule.forRoot()添加到主模块的导入中,并尝试将其添加到延迟加载的模块中。然后,我尝试将它添加到两者中,并且我也尝试在没有forRoot()的情况下添加它。错误保持不变。我不知道应该在哪里将QuillEditorBase添加到to模块中。
我做错了什么?我没有自定义配置。我刚刚安装了它,想让它在世贸组织工作。
发布于 2020-05-20 20:55:26
谢谢@bryan60的提示。这确实是一种版本错配。我安装了最新版本的羽毛笔,但运行的角度8,这需要一个羽毛笔的版本< 10,并在他们的文档中提到。我更新到角9,它起作用了。
发布于 2020-07-27 14:16:07
我也有同样的问题
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.因为我使用Ionic Cordova 4与角~8.1.2和“"^1.3.7"”:“ngx”:"^12.0.0"。
我查了一下羽毛笔的文件发现了这个。
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所以,为了解决我的问题。我把ngx的评级从v12.0.0降到了5.2.0。并在此之后编译成功。
https://stackoverflow.com/questions/61837634
复制相似问题