Closed mirus-ua closed 1 year ago
Quite a late response but I finally figured out a workaround, seems like everyone is having these issues even with tiptap maintained packages like @tiptap/vue
There's 2 fixes I know of
dropcursor
and gapcursor
StarterKit.configure({
dropcursor: false,
gapcursor: false,
}),
Not ideal but if you don't need them...
If you use vite you can explicitly install prosemirror
dependencies
yarn add prosemirror-state prosemirror-transform prosemirror-model prosemirror-view
or npm install, etc.
And then in vite.config.js
add this:
optimizeDeps: {
include: [
'prosemirror-state',
'prosemirror-transform',
'prosemirror-model',
'prosemirror-view'
]
}
Quite a late response but I finally figured out a workaround, seems like everyone is having these issues even with tiptap maintained packages like @tiptap/vue
There are 2 fixes I know of
First one is to disable
dropcursor
andgapcursor
StarterKit.configure({ dropcursor: false, gapcursor: false, }),
Not ideal but if you don't need them...
Second one is:
If you use vite you can explicitly install
prosemirror
dependenciesyarn add prosemirror-state prosemirror-transform prosemirror-model prosemirror-view
or npm install, etc. And then invite.config.js
add this:optimizeDeps: { include: [ 'prosemirror-state', 'prosemirror-transform', 'prosemirror-model', 'prosemirror-view' ] }
But it disables both dropcursor
and gapcursor
.
@SalahAdDin the second fix doesn't need to disable them
Added a section in the readme for fixing the error, marking this issue as solved https://github.com/andi23rosca/tiptap-solid/commit/da2db52d6f53e8d445765ce8ad389cbc6dc9f3ee
I checked this combination of packages without the tiptap-solid library and it's worked, so I guess the problem in the package. I can provide additional information if needed
Can be reproduced with the example code
The package.json dependencies
The full text of the error