Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use namespace 'Quill' as a type #9

Open
amineChenn opened this issue Nov 25, 2020 · 4 comments
Open

Cannot use namespace 'Quill' as a type #9

amineChenn opened this issue Nov 25, 2020 · 4 comments

Comments

@amineChenn
Copy link

amineChenn commented Nov 25, 2020

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
Copy link

Faced the same issue, any workaround?

@amineChenn
Copy link
Author

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
Copy link

Yep, it helped, thanks a lot.

@suhailkc
Copy link

suhailkc commented Nov 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants