Open dugoalberto opened 3 weeks ago
I'm getting this as well from following the getting started instructions(yarn)
solution(for me at least): https://discord.com/channels/933657521581858818/934234468514922567/1301530280212828221
I use quasar so I had to apply this in my quasar.conf.js:
extendViteConf(viteConf) {
// Extend the Vite configuration to exclude dependencies from optimization
viteConf.optimizeDeps = {
...viteConf.optimizeDeps,
exclude: ['@electric-sql/pglite'], // replace 'some-library' with the module you want to exclude
}
// Optional: Exclude from Rollup build as well
viteConf.build = {
...viteConf.build,
rollupOptions: {
...viteConf.build?.rollupOptions,
external: ['@electric-sql/pglite'], // ensure that Rollup does not bundle this module
},
}
},
related docs: https://pglite.dev/docs/bundler-support
HI everyone, I'm trying to use electric-sql without the need of using cdn and I got this error while I'm loading the db:
I'm using a bundled version (electric-sql-bundle.js) created with esbuild
this is the code of the esbuild const esbuild = require('esbuild');
Probably i did something wrong but i dont find any kind of documentation related to this.
If I did something wrong in the bug report im sorry