sql.js icon indicating copy to clipboard operation
sql.js copied to clipboard

Invalid asm.js: Undefined global variable warning

Open georgianjalba opened this issue 7 years ago • 5 comments

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 avatar Aug 15 '18 12:08 georgianjalba

@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?

robmontesinos avatar Nov 20 '18 21:11 robmontesinos

@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 avatar Nov 21 '18 07:11 georgianjalba

@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 avatar Nov 21 '18 07:11 robmontesinos

@robmontesinos Thanks, best of luck to you too!

georgianjalba avatar Nov 21 '18 08:11 georgianjalba

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.

cschweda avatar Oct 01 '21 22:10 cschweda