surmon-china / ngx-quill-editor

🍡@quilljs editor component for @angular
https://github.surmon.me/ngx-quill-editor
MIT License
232 stars 54 forks source link

quillEditor.component.ts (14,20): Cannot find namespace 'Quill'. #22

Open lingfengchencn opened 7 years ago

lingfengchencn commented 7 years ago

Version "ngx-quill-editor": "^2.1.0", has following errors;

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (14,20): Cannot find namespace 'Quill'.

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (15,22): Cannot find namespace 'Quill'.

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (16,22): Cannot find namespace 'Quill'.

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (17,18): Cannot find namespace 'Quill'.

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (18,20): Cannot find namespace 'Quill'.

ERROR in /path/frontend/node_modules/ngx-quill-editor/quillEditor.component.ts (19,15): Cannot find name 'require'. webpack: Failed to compile.

damsorian commented 7 years ago

Same error when update to 2.1.0

surmon-china commented 7 years ago

This issue is caused by the upgrade, please use the 2.0.2 version, I will solve this problem as soon as possible.

npm i ngx-quill-editor@2.0.2

joeprisk commented 7 years ago

Or install the types to be used with the package rather than relying on any type for everything

npm install --save-dev @types/quill