Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.
This repository was 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

@mrwrighty

Description

@mrwrighty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions