-
-
Notifications
You must be signed in to change notification settings - Fork 591
Higher versions [prosemirror-] packages with the [transform] dependency will make the pattern of the new line to override the row above it. #427
Comments
This has been brought up several times, and is the reason that the https://github.com/outline/rich-markdown-editor/blob/main/package.json#L43 |
Same problem here. I am getting The below changes in the yarn.lock file helped. Thanks @NagiaME ! I've changed this:
to this:
|
@mzalevski Since yarn.lock is auto-generated and changes can be easily overwritten, you might want to add to resolutions in your package.json ...
"resolutions": {
"prosemirror-transform": "1.2.5"
}, |
I came into this problem when I delete node_modules and reinstall. |
As mentioned before the package json explicitly specifics |
@tommoor 1.2.5 gets correctly installed, but some of the other packages are requesting other versions of it. prosemirror-commands, prosemirror-history, prosemirror-inputrules, etc. ask for ^1.0.0, prosemirror-dropcursor asks for ^1.1.0, prosemirror-tables asks for ^1.2.1. So a fresh project that just does
I'm not sure what the best way to handle this is! But for an end-user, using |
Yea, I still feel like this is a problem in the package manager though - it should optimize for least installed duplicate packages IMO. There's not much that can be done about it though other than what you've described. |
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The cause of this exception may is the newer [prosemirror-] packages are using the newer [prosemirror-transform] (upper than 1.2.5). The way I could only find to solve it is to change the lines about the inner dependencies in the
yarn.lock
file of the project which is using the editor manually, like:Version
<=11.6.2
Screenshots
(Don't care about the styles)
The text was updated successfully, but these errors were encountered: