- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 594
 
Impossible to install via npm due to conflicting and duplicating dependencies. #512
Description
rich-markdown-editor version: 11.17.0
rich-markdown-editor defines an explicit dependency on prosemirror-tables, which at the moment resolves to 1.1.1.
However, rich-markdown-editor also defines an explicit dependency on prosemirror-utils , which at the moment resolves to 0.9.6. The problem is that [email protected] also defines an explicit dependency on prosemirror-tables, which resolves to 0.9.5. The following tree illustrates the resulting dependency graph:
[email protected] /path/to/project
└─┬ [email protected]
  ├── [email protected]
  └─┬ [email protected]
    └── [email protected]
This results in RangeError: Duplicate use of selection JSON ID cell exception being thrown since prosemirror-tables tries to define some unique element twice (correct me if I'm wrong here).
And no, this is not an issue with "unique package situation", as was suggested in #412 (comment). On yarn this issue can be somewhat mitigated through "selective dependency resolutions". (Update: I just checked, and apparently in yarn all packages resolve to [email protected], hence manual resolution is not required here). But npm provides no such mechanism at the moment (its counterpart, overrides, is an approved but not yet implemented rfc).  Of course one could manually edit the package-lock.json to resolve it, but this is a highly suboptimal solution for self-evident reasons. Therefore, this issue has to be fixed either in upstream or in this repository.
The good news is that this issue is fixed in [email protected], which no longer defines an explicit dependency on prosemirror-tables, which should, in theory, fix this issue. The bad news is that 1.0.0-0 is tagged as release candidate, which may or may not be acceptable to maintainers of rich-markdown-editor.
Finally, having said all that, would you consider upgrading the problematic prosemirror-utils package to v1, so that npm users can use rich-markdown-editor?