Closed josephwinston closed 2 weeks ago
Thanks for the report, looks like we have a bug in the extension. Until we release a fix you can do this below, note the empty object passed to electricSync
:
const pg = await PGlite.create({
extensions: {
electric: electricSync({}),
},
});
Note to self: the fix is:
const debug = options?.debug ?? false
Works for me with the empty object
const pg = await PGlite.create({
extensions: {
live, electric: electricSync({ debug: true }),
}
})
You need to add debug here
I am attempting to follow: https://github.com/electric-sql/pglite/tree/1de36fef444f3c0030216809c1226dae7c15230d/packages/pglite-sync/example
package.json
main.js
$ node main.js
Please point me in the correct direction