Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Uncaught TypeError: nativescript_sqlite__WEBPACK_IMPORTED_MODULE_0__.Sqlite is not a constructor #176

Open
mrwrighty opened this issue Mar 10, 2022 · 0 comments

Comments

@mrwrighty
Copy link

mrwrighty commented Mar 10, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant