score:1

Accepted answer

sounds like you are using isomorphic react? node is tied to the window object which is non-existent on the server, so you'll get a reference error.

you can try something like this:

if (typeof window !== "undefined" && window.node) {
    var original = node.prototype.removechild;
    node.prototype.removechild = function(node) {
        original.apply(this, arguments);
    }
}

Related Query

More Query from same tag