Hey guys im trying some experiments with Loro and Convext together (https://www.loro.dev/docs/tutorial/get_started) but am running into an issue.
Here is a basic query I am trying to write:
export const myQuery = query({
args: {},
handler: async (ctx, args) => {
const doc = new Loro();
doc.getList("mylist").insert(0, "A");
return doc.exportSnapshot();
},
});
The error I get is:
✖ Error: Unable to push deployment config to https://kindly-elephant-254.convex.cloud
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze auth.js: Uncaught ReferenceError: FinalizationRegistry is not defined
at <anonymous> (../node_modules/loro-wasm/bundler/loro_wasm_bg.js:209:9)
I suspect the issue is because loro uses wasm. I have read however that WASM is supported in both runtimes.
Is this not correct?