-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Duplicate use of selection JSON ID gapcursor #3209
Comments
This issue is actually quite broad and could be very problematic. Prosemirror packages will often have some local runtime cache or they will use Long story short there should only ever be a single copy of virtually any To resolve this all prosemirror packages at all levels in hocuspocus and tiptap should be peerDependencies not dependencies. Workaround To work around this issue I have been adding offending packages to the This is not a good solution though as it can still result in issues. For instance my code uses That was all likely a little confusing and hard to follow but the big take away is that package managers are just not up to the task of flattening |
PS for those who are stuck the workaround I laid out above will still be useful even if you hit issues like I did. In my case I had to add a specific version of |
This really needs to be addressed and the solution is to move all We have had our app break all of a sudden because one or more prosemirror packages have duplicated themselves. This has been happening more and more often specifically because of tiptap's multiple package structure with @tiptap/starter-kit being the biggest issue by far. Please transition to |
We recently made changes to include ProseMirror packages as peer dependencies. An update of the Tiptap/Tiptap Pro packages and the manual installation of the necessary ProseMirror packages should hopefully solve the problem (https://tiptap.dev/installation#1-install-the-dependencies). Please let me know if the problem still exists. |
What’s the bug you are facing?
installing
@tiptap-pro/extension-details
extension shows this errorUncaught RangeError: Duplicate use of selection JSON ID gapcursor
Which browser was this experienced in? Are any special extensions installed?
Microsoft Edge, installed
@tiptap-pro/extension-details
How can we reproduce the bug on our side?
install
@tiptap-pro/extension-details
Can you provide a CodeSandbox?
No response
What did you expect to happen?
no error
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: