-
Notifications
You must be signed in to change notification settings - Fork 936
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
Update Quill Dependency to ^2.0.0 #973
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 23938cc.
Build command is now running fine, see build step output:
|
Any estimate when the beta npm package will be available? |
@hasangursoy I'm not a maintainer of this repository, and I think even they would be hard pressed to give you an estimate. If we don't have a beta release by June, however, I'll release this branch as a fork on npm and will link it here. If you need it sooner than that, I suggest making a fork and package yourself. |
For everyone arriving at this PR, @hasangursoy published this fork as a new npm package (see this issue), and I have my own published fork (with updated typescript type exports) under |
@VaguelySerious Thanks for the temporary NPM package! |
If the maintainer has no plans to update Quill, @VaguelySerious, will you continue to update react-quill-new? Thank you! |
@luc345 Yes, I'll continue to update it for now, at least to keep it stable and compatible with Quill and newer versions of React, though I don't plan on addressing any issues or requests unrelated to basic functioning. |
@VaguelySerious, I'm currently using react-quill-new but encountering an error: "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object." Previously, I was using react-quill, which used Quill 1.x. I switched to react-quill-new because I need to utilize the table module. I'm developing with Next.js. Could you please assist me with this issue? Thank you in advance. |
@ubaidrehman97 Have you tried using ESM's |
@ParkAsher This likely has nothing to do with import "highlight.js/styles/monokai-sublime.css";
import hljsCore from "highlight.js/lib/core";
import javascript from "highlight.js/lib/languages/javascript";
// ... your other languages
hljsCore.registerLanguage("javascript", javascript);
// ... your other languages
// Quill will look for hljs on the window object when used with "syntax: true" or
// when using the "Quill.convert" method.
window.hljs = hljsCore; |
…ility and to match Quill's target
…TML method to event handlers
Sorry, but how to install your fork? npm install VaguelySerious/react-quill --save. |
|
Do you know why unordered lists becomes ordered?
|
@MartinSilvaMX That is part of |
I'm getting this error: quill__WEBPACK_IMPORTED_MODULE_1__ is not a constructor in my console. |
@Jasen-Simedru-SHG Are you using |
Hi @VaguelySerious I just installed your fork cuz I was getting 'findDOMNode' warnings. |
@unartcs This fork of
|
hey is there a way to move discourse to your fork @VaguelySerious ? i found this error |
@omgoshjosh I opened an issue page on my forked repo. Could you repost your issue there, preferably with steps for reproduction? |
Hey @VaguelySerious This is affecting our project, is there a way we can have this Merged soon or do you have an expected date on it? |
@diegoruelasgalaviz The maintainers of this repository are not responsive, but I'm trying my best to maintain |
@VaguelySerious, hi! I have a React application running on Vite. Today, I installed react-quill-new to get rid of the problem: findDOMNode is deprecated and will be removed in the next major release. However, there’s no result; the error still appears in the console. Additionally, I get another error: Listener added for a 'DOMNodeInserted' mutation event. Installed packages: "react-quill": "^2.0.0" The component looks like this: type Props = {
}; I’d appreciate any help. |
@leonid-br Please file such issues in the issues section of my repo instead.
|
This fork is now available on NPM until the original maintainers of this repository merge this PR: [email protected]. I will keep publishing this package with any fixes and updates I discover. Visit the react-quill-new repository for an updated README and instructions.
Report any issues you find in on the react-quill-new issues page.
If you're using my
react-quill-new
and are getting errors like "Unexpected Token: export" or similar, and are using webpack with babel, make sure you have babel transpile this package by ignoring it in theexclude
clause forbabel-loader
. Because Quill moved to being a native ESM module, this PR does the same, which requires ES5-compatible projects to use babel for it.==============================================================================
This PR updates the quill dependency in react-quill from an outdated version (
1.3.7
) to the latest release:2.0.x
, and adds support fortypescript@^5.0.0
.The underlying
Quill@^2.0.0
release mainly includes security fixes and performance enhancement, but most relevant of all, it replaces a deprecated DOM API that will be dropped from Browsers on July 23, 2024 (source).This means that the following issues will be addressed:
The code in this PR is based on the (already approved) #967, with the addition of:
tsc
runs correctly with the new type import syntax.Note that Quill >2.0.0 uses ES modules natively, which breaks some of the tooling in this repository. This PR doesn't directly address that. Specifically, the test setup isn't compatible with the ES modules.
Next steps
Once this PR is merged, I suggest releasing it as
2.1.0-beta.1
, to allow users to upgrade via NPM without suggesting it's completely stable yet. Given the timeline for the DOM API deprecation, we'll have at least a full month to bring this to users in beta state before it becomes advisable to release a full version.Before a production release, we should revisit the test setup to ensure compatibility with the ES modules. This could take the form of updating the webpack setup to transpile the Quill dependency, or finding a version of Mocha that supports these natively.