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
I am developing an electron application using the sqlite3 module and I have developed the code related to function separately now after everything is done now I am trying to import that separately developed module to my main.js file but it's throwing an error from require
at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
at Module._load (internal/modules/cjs/loader.js:848:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (E:\On Going Projects\CSV-CONVERTOR\node_modules\sqlite3\lib\sqlite3-binding.js:4:15)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
var sqlite3 = require('sqlite3').verbose();
this is the import of the sqlite package witch working perfectly when i run node process.js
The text was updated successfully, but these errors were encountered:
after some work, i success build it and run require("sqlite3") at nw-v0.50.3
here is my build version : napi-v6-win32-x64.zip
use python 2.7 but not python 3.6, change path on window PATH system environment varible
force to install nw-gyp and node-pre-gyp
npm i -g nw-gyp node-pre-gyp
run npm i sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.50.3
or npm i sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=nw-v0.50.3
i build success in `node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node'
it need python 2.7 + nw-gyp + node-pre-gyp + visual studio 2015/2017/2019 + "visual studio c++ dev tool"
look at here : nwjs/nw-gyp#130 (comment)
I am developing an electron application using the sqlite3 module and I have developed the code related to function separately now after everything is done now I am trying to import that separately developed module to my main.js file but it's throwing an error from require
now I have tried so many solutions I'm attaching the solution I have tried below
var sqlite3 = require('sqlite3').verbose();
this is the import of the sqlite package witch working perfectly when i run
node process.js
The text was updated successfully, but these errors were encountered: