I'm trying to use Realm with react native, it works fine until I turn on Debug JS Remotely in my react native app.
Work as expected.
Console error and app fails to launch
Require cycle: node_modules/realm/lib/browser/util.js -> node_modules/realm/lib/browser/rpc.js -> node_modules/realm/lib/browser/util.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
const PaymentMethodsSchema = {
name: 'PaymentMethods',
primaryKey: 'payment_method_id',
properties: {
payment_method_id: 'int',
type: 'string',
last4digits: 'string',
}
};
Realm.open({ schema: [PaymentMethodsSchema] })
Similar issue #2409
Hey - looks like you forgot to add a T:* label - could you please add one?
For anybody facing this issue, this was how I solve the problem.
react-native unlink realmreact-native link realmProblem solved