Example todo app has 'Invariant Violation: RelayQueryNode: Abstract class cannot be instantiated'
CaseyLeask opened this issue · 0 comments
CaseyLeask commented
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
isomorphic-relay/src/prepareData.js
Lines 34 to 35 in 0e0840d
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);