David
0
Q:

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) => {})
1

New to Communities?

Join the community