undefined is not an object (evaluating 'RNSqlite2.exec')
See original GitHub issueI’ve got a problem when starting an SQL transaction. It also appear on your test application. The database is correctly opened and there is no error before the first SQL transaction. It appears regardless of the number and the type of SQL queries.
undefined is not an object (evaluating 'RNSqlite2.exec')
exec
C:\wamp64\www\reactor\node_modules\react-native-sqlite-2\src\SQLiteDatabase.js:74:12
runBatch
C:\wamp64\www\reactor\node_modules\websql\lib\websql\WebSQLTransaction.js:54:32
runAllSql
C:\wamp64\www\reactor\node_modules\websql\lib\websql\WebSQLTransaction.js:96:11
_checkDone
C:\wamp64\www\reactor\node_modules\websql\lib\websql\WebSQLTransaction.js:133:12
<unknown>
C:\wamp64\www\reactor\node_modules\websql\lib\websql\WebSQLDatabase.js:62:4
run
C:\wamp64\www\reactor\node_modules\immediate\lib\index.js:71:11
nextTick
C:\wamp64\www\reactor\node_modules\immediate\lib\index.js:42:6
<unknown>
C:\wamp64\www\reactor\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:262:23
_callTimer
C:\wamp64\www\reactor\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:154:6
callTimers
C:\wamp64\www\reactor\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:411:17
__callFunction
C:\wamp64\www\reactor\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:299:47
<unknown>
C:\wamp64\www\reactor\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26
__guard
C:\wamp64\www\reactor\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:262:6
callFunctionReturnFlushedQueue
C:\wamp64\www\reactor\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:11
Top Results From Across the Web
react native - How to fix 'undefined is not an object (evaluating ...
I am using expo for building pure react-native app. I have already tried re-installing react native but it did not work. This is...
Read more >react-native-sqlite-2 - Bountysource
undefined is not an object (evaluating 'RNSqlite2.exec') exec C:\wamp64\www\reactor\node_modules\react-native-sqlite-2\src\SQLiteDatabase.js:74:12 runBatch ...
Read more >RN-Error: undefined is not an object (evaluating 'this.feed.stop')
I have tried the sample application (React Native and Couchbase lite) that was provided in below link When I navigate the screen between ......
Read more >TypeError: undefined is not an object (evaluating 'http ... - Reddit
TypeError: undefined is not an object (evaluating 'http.ServerResponse.prototype'). Hi, I'm currently working on a research project which ...
Read more >Troubleshooting common problems | React Native Reanimated
undefined is not an object (evaluating '_toConsumableArray(Array(length)).map') . This error shows when you use spread ( ...array ) inside worklets.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
How can i use Pre-populated SQLite database from my app
TIA
@codeyourweb, Please follow this scenario:- Android Open up
android/app/src/main/java/[...]/MainApplication.java
Addimport dog.craftz.sqlite_2.RNSqlite2Package;
to the imports at the top of the file Addnew RNSqlite2Package()
to the list returned by thegetPackages()
method Append the following lines toandroid/settings.gradle
:Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-sqlite-2')