sqlite / sqlite-wasm

SQLite Wasm conveniently wrapped as an ES Module.
580 stars 47 forks source link

Getting TypeError: xArg.get() is not a function #51

Closed DK-06 closed 12 months ago

DK-06 commented 12 months ago

I'm using Cordova application, With this tried to integrate your package to avoid websql access in browser. So I did the sample application which you provided in the documentary. It leads with the sqlite3 bootstrap initializerthrew: TypeError: xArg.get() is not a function.

sqlite3ApiBootstrap() error: TypeError: xArg.get(...) is not a function at cache.xWrap.convertArgNoCheck (sqlite3-bundler-friendly.mjs:7752:68) at Object.sqlite3_vfs_find (sqlite3-bundler-friendly.mjs:7794:31) at sqlite3-bundler-friendly.mjs:10438:29 at sqlite3-bundler-friendly.mjs:6773:13 at Array.forEach () at sqlite3ApiBootstrap (sqlite3-bundler-friendly.mjs:6772:44) at sqlite3-bundler-friendly.mjs:14355:32 at callRuntimeCallbacks (sqlite3-bundler-friendly.mjs:666:26) at postRun (sqlite3-bundler-friendly.mjs:445:7) at doRun (sqlite3-bundler-friendly.mjs:5655:9)

And from catch block getting the below

TypeError: Cannot set properties of undefined (setting 'scriptInfo') at sqlite3-bundler-friendly.mjs:14417:22

Please provide any solution / sample application as soon as possible.

tomayac commented 12 months ago

For Cordova, please use any of the officially recommended SQLite plugins. Thanks!