When I first run this example I can get it to work but if refresh the page I get the following error:
TypeError: Cannot assign to read only property '1' of [object Array]
at Array.sort (native)
at PostList (C:\next.js\examples\with-apollo\components\PostList.js:20:27)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:76:15)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:80:7)
at getQueriesFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:102:3)
at getDataFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:123:17)
at C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:131:28
at process._tickCallback (node.js:385:9)
It also works if I change the file and re-save it. If I refresh after that it stops working again.
I have set my graph.cool end point in initClient.js. Is there something I am not doing correctly?
When I first run this example I can get it to work but if refresh the page I get the following error:
TypeError: Cannot assign to read only property '1' of [object Array]
at Array.sort (native)
at PostList (C:\next.js\examples\with-apollo\components\PostList.js:20:27)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:76:15)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:80:7)
at getQueriesFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:102:3)
at getDataFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:123:17)
at C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:131:28
at process._tickCallback (node.js:385:9)
It also works if I change the file and re-save it. If I refresh after that it stops working again.
I have set my graph.cool end point in initClient.js. Is there something I am not doing correctly?