ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.61k stars 336 forks source link

Upgrading prosemirror-view from 1.9.10 to 1.28.3 #1362

Open olivierdorvelus-qz opened 1 year ago

olivierdorvelus-qz commented 1 year ago

Hi Prosemirror team, this isn't really an issue but we're looking for guidance on how we can make a significant upgrade to our current prosemirror-view. We are currently running prose-mirror version 1.9.10 but we want to upgrade to 1.28.3 to resolve this issue However, this upgrade causes this error InvalidStateError: extend() requires a Range to be added to the Selection

The error we get from upgrading prosemirror is the following:

image

This happens when trying to perform any event in the editor e.g key events, paste events, etc.

This is the stack trace we get back in rollbar after the upgrade:

image

The other prosemirror libraries we are using:

    "prosemirror-commands": "^1.0.7",
    "prosemirror-history": "^1.0.4",
    "prosemirror-keymap": "^1.0.1",
    "prosemirror-model": "^1.7.0",
    "prosemirror-state": "^1.2.2",
marijnh commented 1 year ago

Have you checked if npm didn't duplicate packages? That often happens when you upgrade—clearing the package lock and reinstalling usually resolves it.