Realm-js: Cannot redefine property: logout

Created on 26 Mar 2018  路  7Comments  路  Source: realm/realm-js

Goals

Run Realm

Expected Results

App loads

Actual Results

I get "Cannot redefine property: logout" red screen error

Steps to Reproduce

First comment out subscription line as stated in https://github.com/realm/realm-js/issues/1711 . Import realm from anywhere and run app

Code Sample

import Realm from "realm";

Version of Realm and Tooling

  • Realm JS SDK Version: ?
  • Node or React Native: ?
    "realm": "^2.2.18",
    "react": "16.0.0-alpha.6",
    "react-native": "0.44.0",
  • Client OS & Version:
    Any

  • Which debugger for React Native:
    standard

O-Community P-1-Required T-Bug

Most helpful comment

I've done a little workaround that seems to be working for now. But i'm sure a proper fix would be required. The below changes are in \node_modules\realm\lib\extensions.js:132:15
Basically check if property logout already exists and if it does, remove it from the list of properties to be defined
image

All 7 comments

i'm facing the same issue, any news?

Is there any people who solved this problem ?

I've done a little workaround that seems to be working for now. But i'm sure a proper fix would be required. The below changes are in \node_modules\realm\lib\extensions.js:132:15
Basically check if property logout already exists and if it does, remove it from the list of properties to be defined
image

@macceth it is not perfect, you will get an error when stopping remote debugging unfortunately. I will try to address this issue when i get a chance.

Not being able to debug apps while this bug exists :(

+1, We are unable to debug our react-native application because of this bug using the latest(2.3.5) version.
Remote debugging working fine on version 2.2.20

The API (and implementation) has changed a lot in v10.0.0. I am closing the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gwanjar picture gwanjar  路  3Comments

emrehayirci picture emrehayirci  路  3Comments

CrystalRanita picture CrystalRanita  路  3Comments

timanglade picture timanglade  路  3Comments

kontinuity picture kontinuity  路  3Comments