nodkz / relay-northwind-app

A complex React, Relay, GraphQL demo app. Online demo:
https://nodkz.github.io/relay-northwind/
MIT License
103 stars 18 forks source link

Fix bugs: #7

Open khoazero123 opened 5 years ago

khoazero123 commented 5 years ago

Fixed "rule is not a function" when run "npm run relay" getOperation is not a function

nodkz commented 5 years ago

Probably you use a different version of Relay.

Please run the following command and provide your output here:

npm list react-relay

I think that you install packages via npm, but in repo used yarn. So to avoid this problem I want to update and fix package.json versions.

Thanks.

nodkz commented 5 years ago

For me all works as expected when I install packages via yarn install.

You may obtain a working solution when change in package.json the following lines:

- "react-relay": "^1.4.1",
+ "react-relay": "1.4.1",

- "relay-compiler": "^1.4.1",
+ "relay-compiler": "1.4.1",