Questions tagged [rxdb]
44 questions
1
vote
0 answers
error in rxdb:Cannot read properties of undefined (reading 'key')?
enter image description here
rx-schema-helper.ts:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'key')
at getPrimaryFieldOfPrimaryKey (rx-schema-helper.ts:104:63)
at fillWithDefaultSettings…

sanguogege
- 11
- 2
1
vote
1 answer
Any way to make RxDB work for React Native on Expo with a SQLite database (I own a RxDB Premium, the SQLite Plugin does not work)
The author mentions that his premium plugin rxdb-premium/plugins/storage-sqlite is not working on older version of SQLite on Android, if we get the error mentionned below (in the next code block). So, expo uses SQLite version 3.32.2 instead of…

jwallet
- 248
- 3
- 7
1
vote
1 answer
Getting Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]'); in ReactNative
RxError: RxError:
RxDatabase.create(): Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]');
Given parameters: {
adapter:"asyncstorage"}
database.js //mycode
import RxDB from 'rxdb';
import schema from…

Ramesh R
- 7,009
- 4
- 25
- 38
1
vote
1 answer
pouchdb or alternative where I can control how much data stored locally?
In the design stage for an app that collects large amounts of data...
Ideally, I want it to be an offline-first app and was looking to Pouchdb/Counchdb - However, the data needs to be kept for years for legal reasons, and my concern is that this is…

baradhili
- 514
- 1
- 7
- 27
1
vote
0 answers
How can I configure a plugin in RxDB?
I added the ajv validation plugin through the standard way:
import { RxDBAjvValidatePlugin } from 'rxdb/plugins/ajv-validate';
addRxPlugin(RxDBAjvValidatePlugin);
and now see the following error:
Uncaught Error: strict mode: unknown keyword:…

Ilya Loskutov
- 1,967
- 2
- 20
- 34
1
vote
0 answers
How to use RxDB with PouchDB adapter in a Nuxt 3 project?
I'm using Nuxt 3 with client side rendering and I'm having some issues making RxDB with PouchDB adapter to work.
I'm having issues getting RxDB/PouchDB to work. :/
Excerpt from nuxt.config.ts (I tried my best but I don't know what I'm doing.)
ssr:…

HypeWolf
- 750
- 12
- 29
1
vote
1 answer
Why is the vanilla JS example for RxDB not working
I've followed the instructions at GitHub, but the example doesn't work.
The app shows "Starting database".
At the browser console there is this error:
Uncaught (in promise) TypeError: storage is undefined
_callee6$ …

FredVal
- 11
- 3
1
vote
0 answers
rollup cannot find exported function using commonjs plugin even with namedExports
I'm trying to use rxdb with rollup but rxdb imports the clone module, and apparently in a way incompatible with rollup and the commonjs plugin.
I see this error when I run yarn dev:
[!] Error: 'default' is not exported by…

xrd
- 4,019
- 6
- 30
- 39
1
vote
0 answers
RxDb - Delete object from array with specific index
It gives me a head-ache seeing all solutions using $pull in MongoDb that RxDb inspire it's queries I started looking into docs I saw that RxDb uses modifyjs. Yee... it doesn't support $pull operator so it leaves only with $unset but it works only…

Adrak Pro
- 17
- 5
1
vote
0 answers
Rxdb migration is not running
I have a schema with version 0, and 4k docs with it.
Changing version to 1, have the following strategy:
autoMigrate: true,
migrationStrategies: {
1: (r: any) => {
debugger;
console.log(r);
return r;
}
},
reload the…

Vladimir Mikhaylovskiy
- 1,955
- 4
- 19
- 28
1
vote
1 answer
Data syncing with pouchdb-based systems client-side: is there a workaround to the 'deleted' flag?
I'm planning on using rxdb + hasura/postgresql in the backend. I'm reading this rxdb page for example, which off the bat requires sync-able entities to have a deleted flag.
Q1 (main question)
Is there ANY point at which I can finally hard-delete…

yen
- 1,769
- 2
- 15
- 43
1
vote
1 answer
RxDB leader-ship blocks all sockets in chrome
I used the waitForLeadership to let only one tab sync the db. And it looks like it works. But if I activate this feature and open more than 3 tabs, the next tabs won't load.
Chrome always says, waiting for available socket...
Did anyone had/have…

Auryn
- 1,117
- 1
- 13
- 37
1
vote
1 answer
RxDB/Electron storing data in sqlite
I want to build a hybrid using Ionic/Electron to run it on Desktop,Browser and Android, after doing some research i found about RxDB which by it's definition seems to fit this kind of DB usage (https://rxdb.info/)
I want to be able to store data…

user7616817
- 357
- 4
- 18
1
vote
1 answer
How to index geojson data in browser to store in indexDB (using geojson-vt)
Overview
I have a fairly interesting requirement where I need to load geojson data from a service (not a vector tile service) and then cache that data for offline use (using indexDB). So, when running the application offline I need to load that data…

Rusty
- 109
- 1
- 9
1
vote
0 answers
Cannot get RxDb MigrationStrategies to run
I am trying to implement a simple migrationStrategy as described in the docs here: https://rxdb.info/data-migration.html
I wanted to know if anyone has successfully implemented migrationStrategies as I cannot find any examples online or if I am just…

Njinu Kimani
- 11
- 2