relay-tools / react-relay-network-modern-ssr

SSR middleware for react-relay-network-modern
https://github.com/relay-tools/react-relay-network-modern-ssr
MIT License
67 stars 10 forks source link

// import Amplify from 'aws-amplify'; #9

Closed st0ffern closed 6 years ago

st0ffern commented 6 years ago

Doing this import anywhere in the client code:

import Amplify from 'aws-amplify';

Breakes the code in a wierd way.. Error:

RelayClientSSR { cache: null, debug: false }
TypeError: environment.relaySSRMiddleware.getCache is not a function
    at _callee$ (webpack:///./server/index.js?:104:53)

any ideas @nodkz ?

st0ffern commented 6 years ago

My bad, i found the error. its related to detection of server og client instance before i use this repo :)