Closed stefanonardo closed 3 months ago
Sorry for delay, are you still having this issue? I just updated to the latest dev build, so would be useful to know if it's still an issue after upgrading?
I'm having the same issue:
Uncaught (in promise) TypeError: duckdb.getJsDelivrBundles is not a function
at initializeDuckDb.ts:38:1
at Generator.next (<anonymous>)
at sourceMaps.js:16:1
at new Promise (<anonymous>)
at __async (sourceMaps.js:16:1)
at _initializeDuckDb (initializeDuckDb.ts:35:1)
at initializeDuckDb.ts:25:1
at Generator.next (<anonymous>)
at sourceMaps.js:16:1
at new Promise (<anonymous>)
That's strange, I haven't been able to reproduce it. Can anyone share a minimal repro?
What bundler or framework are you using to import the library (e.g. nextjs, webpack, vite, etc)? I'm guessing that something isn't being imported right.
Closing for now, but feel free to re-open if you can share a way to repro the issue.
Hello, I'm trying to create a duckdb with
const { db, loading, error } = useDuckDb();
, however it fails the initialization onconst JSDELIVR_BUNDLES = duckdb.getJsDelivrBundles();
becauseduckdb
is not imported properly but it's this object