Conflicting versions of prosemirror-model installed
See original GitHub issueDescribe the bug When using vanilla tiptap, errors are thrown because of conflicting versions of prosemirror-model.
Steps to Reproduce / Codesandbox Example
- New project
yarn add tiptap
- Create a minimal build
- Type in the editor
- Go to the end of the last line and hit enter
- See error
Codesandbox
https://codesandbox.io/s/vue-issue-template-m4u2j
Expected behavior There should be no errors
Screenshots
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:
- Created 3 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See #577 which also remains unsolved. I’m afraid the “resolutions” solution isn’t a proper solution.
Thanks for sharing the workarounds! Closing this here, as it’s a duplicate with #577.