Closed michaelpalumbo closed 1 year ago
Hi @michaelpalumbo, I tried running the code with your JSON and it worked fine for me. The error message indicates that you have an undefined
value somewhere in your data, which is not supported by Automerge (because most languages other than JS don't have the distinction between null
and undefined
, and Automerge needs to support multiple languages). You'll need to find where the undefined
value is being used, and replace it with null
.
hmm. ok. i'll try to track that down! thanks @ept
@ept In the meantime, I'm able to get it working if I stringify the object before passing to automerge. it strikes me as maybe not using automerge to its strengths, operating on a very large string instead of an object, but do you foresee any problem with doing that?
for anyone also using threeJS, I've started this thread in their forums about this problem I'm having
@michaelpalumbo If you stringify the whole object, you might as well not use Automerge at all because you won't get any of its merging behaviour. If two users update the data concurrently, you will simply get a conflict between the two JSON strings that you would have to resolve manually.
Hope you can get it working. I'm going to close this issue since it's not an issue with Automerge itself.
Thanks Martin. Yes, and we've decided to cherry pick the data from the threeJS scene object so that we can avoid this problem anyway. take care!
On Tue, Aug 30, 2022 at 12:27 PM Martin Kleppmann @.***> wrote:
Closed #504 https://github.com/automerge/automerge/issues/504 as completed.
— Reply to this email directly, view it on GitHub https://github.com/automerge/automerge/issues/504#event-7289191077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASLT4IKWQHEITILIVVOYTDV3YY6VANCNFSM56BLPJFQ . You are receiving this because you were mentioned.Message ID: @.***>
https://linktr.ee/thispatcher -- all things me https://linkr.ee/exitpoints -- exit points concert series
I'm working on an app that uses three.js, and am getting this error when attempting to the scene graph in automerge.
The code:
The object I am trying to store: