You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get automerge running in browser with rollup.
none of the exports from the wasm file will be recognized
-> [name] is not exported by node_modules/@automerge/automerge-wasm/bundler/automerge_wasm_bg.wasm
e.g.: automerge_generateSyncMessage is not exported by ...
what is missing for rollup
src/index.mjs
import * as Automerge from "@automerge/automerge";
export default () => {
let doc = Automerge.init();
let actorId = Automerge.getActorId(doc);
console.log("Automerge", actorId);
}
This looks to me like an issue with Rollup's wasm plugin rather than automerge specifically. Although I appreciate that the state of wasm module support in the JS ecosystem is quite frustrating at the moment.
issackelly
pushed a commit
to issackelly/automerge
that referenced
this issue
May 9, 2024
I can't get automerge running in browser with rollup.
none of the exports from the wasm file will be recognized
-> [name] is not exported by node_modules/@automerge/automerge-wasm/bundler/automerge_wasm_bg.wasm
e.g.: automerge_generateSyncMessage is not exported by ...
what is missing for rollup
src/index.mjs
automerge.html
rollup.config.js
The text was updated successfully, but these errors were encountered: