Closed freerig closed 3 months ago
Automerge repo is based on the next
Automerge api, which doesn't use Text
at all. Instead, you should just set a string value (with type string
) and then manipulate it using the splice
function.
OK, thanks, I will consider using string.
I use
svelte
withvite
andtypescript
on Arch btw, and I have a websocket sync server running onlocalhost:3030
This code works until the line I'm talking about (see comment in my code) and produce this error:
and this one:
[HMR][Svelte] Unrecoverable HMR error in <TextEdit>: next update will trigger a full reload
But when I replace
new Text()
bynew Counter()
, it works good. I tried removing the document folder in my sync server, or removing the DB storage adapter.Does someone have an idea of what's going on (I hope this is not a stupid problem) ?