quill-table-ui icon indicating copy to clipboard operation
quill-table-ui copied to clipboard

Cannot use namespace 'Quill' as a type

Open amineChenn opened this issue 5 years ago • 4 comments

Hello,

I want to use 'quill table ui' with 'Quill v2.0.0-dev.3' (with @types/quill also) in Angular and I faced this issue :

ERROR in ../../node_modules/quill-table-ui/dist/index.d.ts:32:12 - error TS2709: Cannot use namespace 'Quill' as a type.

32     quill: Quill;
              ~~~~~
../../node_modules/quill-table-ui/dist/index.d.ts:39:24 - error TS2709: Cannot use namespace 'Quill' as a type.

39     constructor(quill: Quill, options: any);

Is it a known issue ?

Thank you.

amineChenn avatar Nov 25 '20 10:11 amineChenn

Faced the same issue, any workaround?

yurasmetanka avatar Nov 27 '20 15:11 yurasmetanka

Hello, yes, I took the ts and scss from the dependancy and add it directly in my code and import Quill like this : import Quill from 'quill'

Hope it will help you.

amineChenn avatar Nov 27 '20 15:11 amineChenn

Yep, it helped, thanks a lot.

yurasmetanka avatar Nov 27 '20 16:11 yurasmetanka

I have the same issue in ngx-quill. any workaround??

suhailkc avatar Nov 03 '21 08:11 suhailkc