tui.editor
tui.editor copied to clipboard
When I run it after build, I get an error when I press enter key
Describe the bug
When I run it after build, I get an error when I press enter key
build tool : vite react 18 with ts package manager: pnpm
error message : Uncaught RangeError: Can not convert <> to a Fragment (looks like multiple versions of prosemirror-model were loaded)
To Reproduce
Steps to reproduce the behavior:
- open editor
- push enter key
- error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: ubuntu
- Browser chrome
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
hah, I have same problem. And I couldn't resolve it.
same problem
same problem
yup, same problem here as well
same problem
Take a look at https://github.com/ueberdosis/tiptap/issues/577 and try workarounds
- add
resolutions
in package.json. use version1.16.1
// package.json
"resolutions": {
"prosemirror-model": "1.16.1"
},
- use
"type": "commonjs"
instead of"type": "module"
in package.json (but it makes no difference for me) - remove
node_modules
and lock files (not sure if it is needed) - install packages again
It works for me.
Take a look at ueberdosis/tiptap#577 and try workarounds
- add
resolutions
in package.json. use version1.16.1
// package.json "resolutions": { "prosemirror-model": "1.16.1" },
- use
"type": "commonjs"
instead of"type": "module"
in package.json (but it makes no difference for me)- remove
node_modules
and lock files (not sure if it is needed)- install packages again
It works for me.
also works for me, just add "resolutions" to the package.json and execute pnpm install
.