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

引入:import { ElementTiptap } from "element-tiptap";后控制台报错:Duplicate use of selection JSON ID cell #375

Closed
wang-yongjia opened this issue Jun 27, 2021 · 4 comments
Labels

Comments

@wang-yongjia
Copy link

Uncaught RangeError: Duplicate use of selection JSON ID cell
at Function.jsonID (index.es.js?5313:188)
at eval (index.js?fc88:594)
at Object../node_modules/prosemirror-tables/dist/index.js (chunk-vendors.js:3580)
at webpack_require (app.js:849)
at fn (app.js:151)
at eval (index.js?986d:7)
at Object../node_modules/prosemirror-utils/dist/index.js (chunk-vendors.js:3604)
at webpack_require (app.js:849)
at fn (app.js:151)
at Module.eval (element-tiptap.esm.js?4ccc:1)

@BillCooks
Copy link

找到解决方案了,原因是引入了重复的不同版本的模块prosemirror-tables,解决方案:
方案1.将node_modules/titap-extensions文件夹下面的node_modules改下名字就可以了比如说改成node_modules--;
方案2.将node_modules/titap-extensions/node_modules/prosemirror-tables删除也可以。
总之不让第二个版本被引入即可

@wang-yongjia
Copy link
Author

wang-yongjia commented Jul 16, 2021 via email

@suyu321
Copy link

suyu321 commented Nov 30, 2021

没有titap-extensions目录怎么办啊

Z2R(N N0WQ}BCJD$D~KO}ET

github-actions bot pushed a commit that referenced this issue Dec 17, 2021
## [1.27.1](https://github.com/Leecason/element-tiptap/compare/@1.27.0...@1.27.1) (2021-12-17)

### Bug Fixes

* fix "Duplicate use of selection JSON ID cell" ([ac098d7](ac098d7)), closes [#381](#381) [#324](#324) [#375](#375) [#66](#66)
@Leecason
Copy link
Owner

🎉 This issue has been resolved in version 1.27.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

4 participants