outline / rich-markdown-editor

The open source React and Prosemirror based markdown editor that powers Outline. Want to try it out? Create an account:
https://www.getoutline.com
BSD 3-Clause "New" or "Revised" License
2.87k stars 588 forks source link

RangeError: Duplicate use of selection JSON ID cell #412 #535

Closed HT-Moh closed 2 years ago

HT-Moh commented 3 years ago

rich-markdown-editor editor depends on prosemirror-tables@^1.0.0 , and "prosemirror-utils": "^0.9.6", the latter depends on prosemirror-tables@^0.9.x., I think this is the cause of the issue

image

 "rich-markdown-editor": {
      "version": "11.17.3",
      "resolved": "https://registry.npmjs.org/rich-markdown-editor/-/rich-markdown-editor-11.17.3.tgz",
      "integrity": "sha512-8ISpruzocSVrkoiSgCwrKoB/YGb8/Ue/f04CfBJw6SMGUXB2rSSZVoRtHaH5QKS1dtsg8BJguu1llBkny3jkGw==",
      "requires": {
        "copy-to-clipboard": "^3.0.8",
        "lodash": "^4.17.11",
        "markdown-it-container": "^3.0.0",
        "outline-icons": "^1.26.1",
        "prosemirror-commands": "^1.1.6",
        "prosemirror-dropcursor": "^1.3.3",
        "prosemirror-gapcursor": "^1.1.5",
        "prosemirror-history": "^1.1.3",
        "prosemirror-inputrules": "^1.1.3",
        "prosemirror-keymap": "^1.1.4",
        "prosemirror-markdown": "^1.4.4",
        "prosemirror-model": "^1.13.3",
        "prosemirror-schema-list": "^1.1.2",
        "prosemirror-state": "^1.3.4",
        "prosemirror-tables": "^1.1.1",
        "prosemirror-transform": "1.2.5",
        "prosemirror-utils": "^0.9.6",
        "prosemirror-view": "1.18.1",
        "react-medium-image-zoom": "^3.1.3",
        "react-portal": "^4.2.1",
        "refractor": "^3.3.1",
        "resize-observer-polyfill": "^1.5.1",
        "slugify": "^1.4.0",
        "smooth-scroll-into-view-if-needed": "^1.1.29"
      },
alexef commented 2 years ago

I'm having the exact same issue, in 11.17.9.

HT-Moh commented 2 years ago

The solution which worked for me is using yarn instead of npm