-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi! First of all, fantastic work on this library. I've been using it a bit with DuckDB locally and it's super helpful for many analysis tasks.
Now I'm going a step further and attempting to build this library for the DuckDB Wasm distribution. After a bit of fiddling around with various build settings, I was successfully able to build a h3ext.duckdb_extension.wasm file which I can load into a Wasm instance of DuckDB with load 'h3ext.duckdb_extension.wasm'. Great!
Now I'm running into an issue when I try to call functions from this library. When I call any of the functions, I get a rather cryptic error message. For example:
TypeError: Cannot read properties of undefined (reading 'apply') at wasmImports.<computed>.stub._.<computed> (duckdb-browser-eh.worker.c067f4b4d5eff325690c.js:2:17523)
The interesting thing is that duckdb seems to have registered the functions correctly, because if I call them with the wrong types, it gives me a helpful error message:
So it seems that something is going on when the functions actually execute, or when results are returned.
I have no idea how to even begin to debug this... any ideas? Thanks!