volser/quill-table-ui

Cannot use namespace 'Quill' as a type

amineChenn opened this issue · 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.

Faced the same issue, any workaround?

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.

Yep, it helped, thanks a lot.

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