question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflicting versions of prosemirror-model installed

See original GitHub issue

Describe the bug When using vanilla tiptap, errors are thrown because of conflicting versions of prosemirror-model.

Steps to Reproduce / Codesandbox Example

  1. New project
  2. yarn add tiptap
  3. Create a minimal build
  4. Type in the editor
  5. Go to the end of the last line and hit enter
  6. See error

Codesandbox

https://codesandbox.io/s/vue-issue-template-m4u2j

Expected behavior There should be no errors

Screenshots

image

Environment

  • OS: Mac OS
  • Browser All
  • Version 1.27.1
  • Mobile / Desktop: Desktop

Additional context yarn why provides some information on the conflicts:

> yarn why prosemirror-model
=> Found "tiptap#prosemirror-model@1.9.1"
=> Found "tiptap-commands#prosemirror-model@1.9.1"
=> Found "tiptap-utils#prosemirror-model@1.9.1"
=> Found "tiptap#prosemirror-view#prosemirror-model@1.10.0"

Adding resolutions to my package.json solves the issue:

	"resolutions": {
		"prosemirror-model": "1.10.0"
	},

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jscauxcommented, Jun 8, 2020

See #577 which also remains unsolved. I’m afraid the “resolutions” solution isn’t a proper solution.

0reactions
hanspagelcommented, Aug 7, 2020

Thanks for sharing the workarounds! Closing this here, as it’s a duplicate with #577.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conflicting versions of prosemirror-model installed · Issue #720
Describe the bug When using vanilla tiptap, errors are thrown because of conflicting versions of prosemirror-model.
Read more >
Prosemirror-markdown with custom schema
When I am typing I see the error below looks like multiple versions of prosemirror-model were loaded. However, if I use defaultMarkdownParser ...
Read more >
Editor Raises an Error on Enter Press - KendoReact Editor
The error happens when different versions of ProseMirror packages are loaded. To prevent this error in your app, use the ProseMirror packages from...
Read more >
Multiple versions of prosemirror-model (#12) · Issues - GitLab
Using the published wax packages, I got two versions of prosemirror-model: 1.9.1 and 1.8.0 and it broke the editor.
Read more >
remirror - npm
Latest version: 2.0.15, last published: 12 hours ago. ... Rather than installing multiple scoped packages, the remirror package is a gateway to using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found