You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
I have just created a new project using react-native init Project --template typescript (which is the official way of starting a new project with TypeScript now), configured and installed everything, but the app fails when creating a connection. Here is a screenshot of what shows up:
(class-properties is commented due to another issue with Babel 7 and Flow)
App.tsx#connect
asyncconnect(){awaitcreateConnection({type: 'react-native',database: 'gestor',location: 'default',logging: ['error','query','schema'],synchronize: true,entities: Object.values(models)// this evaluates to an array of entity classes});Alert.alert('hello!');this.setState({loading: false});}
The text was updated successfully, but these errors were encountered:
Nevermind. For anyone in the future with the same error, using react-native link or react-native installdoes not work with react-native-sqlite-storage. You have to add the dependencies manually.
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[x]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)I have just created a new project using
react-native init Project --template typescript
(which is the official way of starting a new project with TypeScript now), configured and installed everything, but the app fails when creating a connection. Here is a screenshot of what shows up:Config files:
babel.config.js
(class-properties is commented due to another issue with Babel 7 and Flow)
App.tsx#connect
The text was updated successfully, but these errors were encountered: