Upgrading prosemirror-view from 1.9.10 to 1.28.3 #1362

Open
opened 2023-03-10 18:06:01 +01:00 by olivierdorvelus-qz · 1 comment
olivierdorvelus-qz commented 2023-03-10 18:06:01 +01:00 (Migrated from github.com)

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",

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](https://github.com/ProseMirror/prosemirror/issues/1308) The error we get from upgrading prosemirror is the following: <img width="902" alt="image" src="https://user-images.githubusercontent.com/71722349/224377405-72bea5e0-12a8-4890-802c-5aac077b03c7.png"> 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: <img width="834" alt="image" src="https://user-images.githubusercontent.com/71722349/224377606-11e689a4-15e2-4d27-993d-ecdbcbfe612c.png"> 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 2023-03-11 00:34:46 +01:00 (Migrated from github.com)

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

Have you checked if npm didn't duplicate packages? That often happens when you upgrade—clearing the package lock and reinstalling usually resolves it.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror#1362
No description provided.