{"id":"cf7e03e6fe7220eb","repo":"typeorm/typeorm","slug":"cordova-sqlite-package-has-not-been-found-installe","errorCode":null,"errorMessage":"Cordova-SQLite package has not been found installed. Please run \"npm install cordova-sqlite-storage\".","messagePattern":"Cordova-SQLite package has not been found installed\\. Please run \"npm install cordova-sqlite-storage\"\\.","errorType":"exception","errorClass":"DriverPackageNotInstalledError","httpStatus":null,"severity":"error","filePath":"src/driver/cordova/CordovaDriver.ts","lineNumber":122,"sourceCode":"                `PRAGMA foreign_keys = ON`,\n                [],\n                () => ok(),\n                (err: any) => fail(err),\n            )\n        })\n\n        return connection\n    }\n\n    /**\n     * If driver dependency is not given explicitly, then try to load it via \"require\".\n     */\n    protected loadDependencies(): void {\n        try {\n            const sqlite = this.options.driver ?? window.sqlitePlugin\n            this.sqlite = sqlite\n        } catch (e) {\n            throw new DriverPackageNotInstalledError(\n                \"Cordova-SQLite\",\n                \"cordova-sqlite-storage\",\n            )\n        }\n    }\n}\n","sourceCodeStart":104,"sourceCodeEnd":129,"githubUrl":"https://github.com/typeorm/typeorm/blob/04ff4daedcf60fa4ffd0d5d33bbafaac1a9bbc96/src/driver/cordova/CordovaDriver.ts#L104-L129","documentation":"Error \"Cordova-SQLite package has not been found installed. Please run \"npm install cordova-sqlite-storage\".\" thrown in typeorm/typeorm.","triggerScenarios":"A DataSource with type \"cordova\" is initialized in an app where the cordova-sqlite-storage plugin is not installed or not available on window.sqlitePlugin.","commonSituations":"See trigger scenarios.","solutions":["Install the plugin: npm install cordova-sqlite-storage","Ensure the plugin is added to the Cordova project (cordova plugin add cordova-sqlite-storage)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"04ff4daedcf60fa4ffd0d5d33bbafaac1a9bbc96","analyzedAt":"2026-08-03T18:27:32.281Z","schemaVersion":2}