question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object (evaluating 'RNSqlite2.exec')

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Reactions:6
  • Comments:11

github_iconTop GitHub Comments

2reactions
Ash-faqcommented, Nov 8, 2018

How can i use Pre-populated SQLite database from my app

TIA

1reaction
harikanammicommented, Sep 26, 2018

@codeyourweb, Please follow this scenario:- Android Open up android/app/src/main/java/[...]/MainApplication.java Add import dog.craftz.sqlite_2.RNSqlite2Package; to the imports at the top of the file Add new RNSqlite2Package() to the list returned by the getPackages() method Append the following lines to android/settings.gradle:

include ':react-native-sqlite-2'
project(':react-native-sqlite-2').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-2/android')

Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-sqlite-2')

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found