volser / quill-table-ui

BSD 3-Clause "New" or "Revised" License
62 stars 15 forks source link

Cannot use namespace 'Quill' as a type #9

Open amineChenn opened 3 years ago

amineChenn commented 3 years ago

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.

yurasmetanka commented 3 years ago

Faced the same issue, any workaround?

amineChenn commented 3 years ago

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.

yurasmetanka commented 3 years ago

Yep, it helped, thanks a lot.

suhailkc commented 2 years ago

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