Skip to content

Typescript Error when lauchning 'ionic serve' #2

@mulamba

Description

@mulamba

I have installed the code in an ionic installation on windows.
After 'npm install' ,' ionic cordova platform rm android', 'ionic cordova platform add android', i tried to verify thats's everything works well before installing on a device.
But i get those errors :

Typescript Error
Argument of type '{}' is not assignable to parameter of type 'any[]'. Property 'length' is missing in type '{}'.

  }).then((db: SQLiteObject) => {
  db.executeSql('CREATE TABLE IF NOT EXISTS expense(rowid INTEGER PRIMARY KEY, date TEXT, type TEXT, description TEXT, amount INT)', {})
  .then(res => console.log('Executed SQL'))

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