It is exactly that, the type of Editor differs between versions. I tried pinning the same version that nostr-editor uses, but no luck. Tiptap/prosemirror is full of fun nuggets like this one.

Reply to this note

Please Login to reply.

Discussion

Agree, it's a beast of a dependency, if you be able to share your rollup.config.js I might be able to help.

I think I've got the basic idea. In this case it was because I was using npm link to point to nostr-editor, which had tiptap 2.9.1 in its pnpm-lock, meanwhile my project (@welshman/editor) has tiptap 2.6.6 in its npm lockfile. I've synchronized the versions (to 2.10.4) and all is well.

lockfiles are evil