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

Importing modules directly fails with Quill 2.0.2 #4217

Closed
p-e-w opened this issue May 21, 2024 · 1 comment · Fixed by #4220
Closed

Importing modules directly fails with Quill 2.0.2 #4217

p-e-w opened this issue May 21, 2024 · 1 comment · Fixed by #4220

Comments

@p-e-w
Copy link

p-e-w commented May 21, 2024

The documentation suggests that Quill's modules can be imported like this (example from linked documentation page):

import { Delta } from 'quill';

However, that flat out doesn't work as Delta and other relevant types aren't exported. Only the clunky Quill.import syntax actually works for importing those modules.

@luin
Copy link
Member

luin commented May 22, 2024

Good catch! You can either import Delta via Quill.import() and import { Delta } from 'quill/core'; but we should support import { Delta } from 'quill';

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

Successfully merging a pull request may close this issue.

2 participants