Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maltseva-k opened this issue Mar 27, 2023 · 3 comments
Labels

Comments

@maltseva-k
Copy link

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?

  • I uninstalled and reinstalled the modules.
  • I have updated all other node modules.
  • I have tried removing and recreating the node_modules folder.
  • and, what turned out to be the only solution that worked, renamed the 'node-modules' folder (path: node_modules/tiptap-extensions/node_modules) to 'node-modules--' (path: node_modules/tiptap-extensions/node_modules--)

Steps to reproduce the behavior:

  1. npm install --save element-tiptap

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

    <script>

import { ElementTiptap } from 'element-tiptap';
import 'element-ui/lib/theme-chalk/index.css';
import 'element-tiptap/lib/index.css';

export default {
  components: {
   ElementTiptap,
  },
};
</script>
  1. npm run dev
  2. open page with elementTipTap
  3. See error 'Duplicate use of selection JSON ID'

Expected behavior
Running component :)))

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu (and on Window 10 too)
  • Browser Google Chrome (111.0.5563.110)
  • Desktop
@maltseva-k maltseva-k added the bug label Mar 27, 2023
@yatkolenko
Copy link

Any solutions? I also have the same problem

@maltseva-k
Copy link
Author

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants