Answers for "sqlite.create "capacitor" cannot read property 'then' of undefined"

1

sqlite.create "capacitor" cannot read property 'then' of undefined

// note: This code needs to be run on a device, not in a PC browser.
// if you
let connection = this.sqlite.create({
	name: 'cards.db',
	location: 'default'
});

// se a conexão for válida
if(connection)
	connection.then((db: SQLiteObject) => {})
Posted by: Guest on October-12-2020

Code answers related to "sqlite.create "capacitor" cannot read property 'then' of undefined"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language