RJR
Convex Community4y ago
6 replies
RJ

Hey all—I ve gotten a PoC of ProseMirror

Hey all—I've gotten a PoC of ProseMirror OT collaborative editing running on Convex!

One challenge I've run into, though, is that my Convex mutation that does the server-side rebasing of the ProseMirror document needs to import modules (e.g. prosemirror-model) which reference the DOM API, so I'm getting type-checking errors via e.g.
npx convex dev
and npx convex deploy. Passing a flag to turn off type-checking works fine, but I'd of course prefer not to do that.

I suppose what I'm saying I'd prefer is for type-checking of Convex functions to take into account not the modules that I'm importing, but the specific terms and types, and their dependencies. But that sounds possibly quite tricky! Any recommendations?
Was this page helpful?