You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i run my code in node it works just fine, but i can't call the query() function if it runs in electron.
Is this a limitation of electron or am i missing something here?
I changed this line in engine.js because in Vue the env variables where not set correctly:
console.log(connection.query("SELECT * FROM MSysObjects WHERE Type=1 AND Flags=0"));
it spits out the following error:
log.js?1afd:24[HMR]WaitingforupdatesignalfromWDS...Home.vue?76f2:16Promisespawn.js?d1a4:87Uncaught(inpromise)TypeError: childProcess.spawnisnotafunctionateval(webpack-internal:///./node_modules/node-adodb/lib/spawn.js:87)atnewPromise(<anonymous>)
at spawn (webpack-internal:///./node_modules/node-adodb/lib/spawn.js:74)
at Proxy.exec (webpack-internal:///./node_modules/node-adodb/lib/proxy.js:40)
at ADODB.query (webpack-internal:///./node_modules/node-adodb/index.js:64)
at VueComponent.created (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Home.vue?vue&type=script&lang=js&:17)
at invokeWithErrorHandling (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1862)
at callHook (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4229)
at VueComponent.Vue._init (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5012)
at new VueComponent (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5158)
The text was updated successfully, but these errors were encountered:
If i run my code in node it works just fine, but i can't call the query() function if it runs in electron.
Is this a limitation of electron or am i missing something here?
I changed this line in engine.js because in Vue the env variables where not set correctly:
I import and open the connection like this:
but when i call
it spits out the following error:
The text was updated successfully, but these errors were encountered: