nativescript-sqlite icon indicating copy to clipboard operation
nativescript-sqlite copied to clipboard

Uncaught TypeError: nativescript_sqlite__WEBPACK_IMPORTED_MODULE_0__.Sqlite is not a constructor

Open mrwrighty opened this issue 3 years ago • 0 comments

Importing nativescript-sqlite

import { Sqlite } from "nativescript-sqlite";

Above line reports: -

Could not find a declaration file for module 'nativescript-sqlite'. 'node_modules/nativescript-sqlite/sqlite.js' implicitly has an 'any' type. Try npm i --save-dev @types/nativescript-sqlite if it exists or add a new declaration (.d.ts) file containing declare module 'nativescript-sqlite';ts(7016)

npm i --save-dev @types/nativescript-sqlite error: -

npm i --save-dev @types/nativescript-sqlite npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fnativescript-sqlite - Not found npm ERR! 404 npm ERR! 404 '@types/nativescript-sqlite@*' is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

var TSdb = new Sqlite("database.db", function(err, db){

Error Uncaught TypeError: nativescript_sqlite__WEBPACK_IMPORTED_MODULE_0__.Sqlite is not a constructor

nativescript-sqlite V2.8.6 NS 8.1.5 NS Core 8.2.1

mrwrighty avatar Mar 10 '22 10:03 mrwrighty