-
-
Notifications
You must be signed in to change notification settings - Fork 560
Error importing @blocknote/core due to missing __serializeForClipboard in prosemirror-view #1428
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
Comments
I have faced the same issue. And it has a simple fix, as @blocknote/core is dependant on prosemirror-view library in there recent changes they have removed the method which is in use of @blocknote/core to resolve the issue I simply add the overrides object in package.json file and set the downgraded version for prosemirror-view package to 1.37.2 |
Thank you for your suggestion. In my case, adding the "overrides" section in package.json didn’t work, but I was able to resolve the issue using "resolutions" instead: |
In version 1.38.0 of prosemirror-view, serializeForClipboard is now cleanly exported: ProseMirror/prosemirror-view@29f4053 We should move to this version as min. dependency and use the new method :) (we'll ship a fix soon, in the mean time, @guillepujol13 's fix should work) |
thank you @guillepujol13, this config works for me! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I get the following error when trying to import
@blocknote/core
:To Reproduce
@blocknote/core
in a project.@blocknote/core
in a component.Misc
18.18.2
yarn 1.22.21
Chrome 133.0.6943.54
@blocknote/core
version:^0.16.0
(also tested with the latest version, issue persists)Possible Cause
After investigating, it seems that this might be caused by the following change in
prosemirror-view
:ProseMirror Commit
The text was updated successfully, but these errors were encountered: