Uncaught TypeError: Cannot read property '_ansicursor' of undefined
That error is showed on 'sqlite3' simply when I require it through
var sqlite3 = require('sqlite3').verbose();
I'm on a angularjs-nodewebkit stack and using gulp, and made all install steps. That error is showed on both, serving app on browser and compiling final app.
+1 I'm trying to use knex.js in a web browser enviroment (a cordova app) and encountered the same error trying to connect to my sqlite db via cordova-sqlite-storage. knex.js uses node-sqlite3 to connect to the local db with a websql-wrapper.
+1 Got the same problem when trying to use node-sqlite3 with ember and ember-browserify.
Hi All,
Got the same problem when trying to use node-sqlite3 with ember and ember-browserify.
Did anybody got resolution.
Regards,
node-sqlite3 is a native module: it should not be expected to work browserify or web environments. SQLite3 is a C library.