Leecason / element-tiptap

🌸A modern WYSIWYG rich-text editor using tiptap and Element UI for Vue3 (1.0 for Vue2)
https://element-tiptap.vercel.app/
MIT License
1.35k stars 166 forks source link

Duplicate use of selection JSON ID error after npm install --save element-tiptap #459

Open maltseva-k opened 1 year ago

maltseva-k commented 1 year ago

hi!

I got an error 'Duplicate use of selection JSON ID error' (This is in reference to a line of code somewhere that reads: "prosemirrorState.Selection.jsonID("cell", CellSelection);") after installing with 'npm install --save element-tiptap'

What have I done to try to fix this issue?

Steps to reproduce the behavior:

  1. npm install --save element-tiptap

  2. added element-tip-tap to the page, i used this option:

  3. npm run dev

  4. open page with elementTipTap

  5. See error 'Duplicate use of selection JSON ID'

Expected behavior Running component :)))

Screenshots image

Desktop (please complete the following information):

yatkolenko commented 1 year ago

Any solutions? I also have the same problem

maltseva-k commented 1 year ago

Hi, Dmitry!

My colleagues and I found a working solution for us:

npm install --save element-tiptap then npm install --save tiptap-extensions then npm i element-ui@^2.0.0 --save then npm i prosemirror-tables@^0.9.1 --save

Try it too :)

climentjoan commented 1 year ago

Hi,

I'm facing the same problem and I tried a lot of suggestions to fix it (including @maltseva-k) without luck.

I'm also tried the solutions provided in tiptap github issues.

Thanks!