Invalid asm.js: Undefined global variable warning
I'm using sql.js version 0.5.0 in a react.js application and I have a warning in my browser that points to sql.js line 7, saying:
Invalid asm.js: Undefined global variable
But since the code is minified I'm not able to see why.
Any ideas how I can get rid of that warning ?
@georgianjalba I am having the same error message with sql.js version 0.5.0 in an Electron Vue.js project. Did you solve this issue?
@georgianjalba I am having the same error message with sql.js version 0.5.0 in an Electron Vue.js project. Did you solve this issue?
Unfortunately no. I also removed the library altogether because using the sample code I had some memory leaks when trying to open the sqlite in the browser. I moved the sqlite file server side and used another library there.
@georgianjalba Sorry to hear that but thank you for letting me know. I also switched because Electron is very finicky - I wound up using an IndexedDB wrapper called Dexie that seems to be cooperating with webpack: https://dexie.org - best of luck to you with your projects
@robmontesinos Thanks, best of luck to you too!
I realize this was posted quite a long time ago, but I have a working Vue version here:
https://github.com/ICJIA/spac-statute-explorer
No issues -- everything works fine.