typeorm/typeorm · error · DriverPackageNotInstalledError
Cordova-SQLite package has not been found installed. Please
Error message
Cordova-SQLite package has not been found installed. Please run "npm install cordova-sqlite-storage".
What it means
Error "Cordova-SQLite package has not been found installed. Please run "npm install cordova-sqlite-storage"." thrown in typeorm/typeorm.
Source
Thrown at src/driver/cordova/CordovaDriver.ts:122
`PRAGMA foreign_keys = ON`,
[],
() => ok(),
(err: any) => fail(err),
)
})
return connection
}
/**
* If driver dependency is not given explicitly, then try to load it via "require".
*/
protected loadDependencies(): void {
try {
const sqlite = this.options.driver ?? window.sqlitePlugin
this.sqlite = sqlite
} catch (e) {
throw new DriverPackageNotInstalledError(
"Cordova-SQLite",
"cordova-sqlite-storage",
)
}
}
}
View on GitHub (pinned to 04ff4daedc)
Solutions
- Install the plugin: npm install cordova-sqlite-storage
- Ensure the plugin is added to the Cordova project (cordova plugin add cordova-sqlite-storage).
When it happens
Trigger: 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.
Common situations: See trigger scenarios.
AI-assisted analysis of typeorm/typeorm@04ff4daedc (2026-08-03).
Data as JSON: /data/errors/cf7e03e6fe7220eb.json.
Report an issue: GitHub.