dflourusso / expo-sqlite-orm

Expo SQLite ORM
132 stars 34 forks source link

Getting warning on EventDatabase.create(props) #18

Closed Necriso closed 4 years ago

Necriso commented 4 years ago

const props = { id: 1, eventcity: "TestCity", eventlocation: "TestLocation", eventname: "TestEvent", }; await EventDatabase.create(props)

After that I get "Possible Unhandled Promise Rejection (id: 0): Object {}"

But the data is in the database and can be get with EventDatabase.query(options).

What can I do to get rid off this warning?

timmytune commented 4 years ago

I am also having this issue, how does one get rid of the warning ?

DennisStudent commented 4 years ago

Same here

dflourusso commented 4 years ago

Which expo sdk version are you using?

timmytune commented 4 years ago

3.8.0

dflourusso commented 4 years ago

3.8.0

What about the expo sdk version?

Are you using 35?

timmytune commented 4 years ago

yes it is 35

dflourusso commented 4 years ago

Provide a demo with a snack link please

SomnathKadam commented 4 years ago

for expo cli version 3.11.3 use below line for import

import * as SQLite from 'expo-sqlite';

dflourusso commented 4 years ago

Thats it @SomnathKadam thanks

lucasvieceli commented 3 years ago

expo-cli : 3.23.3

error: Possible Unhandled Promise Rejection (id: 14):