denvned/isomorphic-relay

Example todo app has 'Invariant Violation: RelayQueryNode: Abstract class cannot be instantiated'

CaseyLeask opened this issue · 0 comments

Tracking down denvned/isomorphic-relay-router#66, I discovered I also get the same error in the isomorphic-relay application.

While the error comes out of Relay, it comes out of this project through

const querySet = Relay.getQueries(Container, queryConfig);
environment.primeCache(querySet, onReadyStateChange);

When it calls root.getChildren(), it crashes.

In the example todo app, that will be

import rootContainerProps from './rootContainerProps';

const GRAPHQL_URL = `http://localhost:8080/graphql`;

const networkLayer = new Relay.DefaultNetworkLayer(GRAPHQL_URL);

IsomorphicRelay.prepareData(rootContainerProps, networkLayer);