-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Tutorial is not a good introduction #1784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am also getting
which is even more non-obvious. |
Quick-fix suggestion: Change the start to cloning relay-examples and instead of expecting user to copy paste, just walk through the existing code. |
is ? |
In real life people need to either configure an ejected create-react-app project (docs request here) or configure an existing webpack project. How to do this is completely missing from the tutorial :-( |
there il also no example tutorial for relay modern. most example code assumes you are using relay classic |
This might not solve your problem but we have recently been moving a project from Classic to Modern and wrote a short post detailing all the steps we had to do: http://softeng.oicr.on.ca/shane_wilson/2017/05/25/relay-migration/ It only goes as far as Relay-Compat because we haven't fully moved everything over to Modern yet but it should help if you have a Classic app running and want to start slowly converting containers. |
thanks this here helped me over the hill: #1796 (comment) |
@shanewilson that was a very informative read, especially on how to incrementally upgrade components to relay-compat. We're not ready to upgrade yet but glad we have an idea of the commitment needed. |
Sorry for the trouble, happy to see there is some resolution here. We've improved documentation iteratively over time, but please feel free to send PRs for improvements and bug fixes to our docs whenever you find them. We appreciate it! |
Converting to use:
in |
Uh oh!
There was an error while loading. Please reload this page.
Hey, so I just tried quickly following the tutorial, and when I ran
yarn run update-schema
I gotI read through the old issues about the tutorial, and it doesn't seem to have changed. I have no clue what I'm doing following it (assume I have zero Relay/GraphQL experience).
The reason I got the error is because I erased the original imports. It's not clear what I am supposed to leave of the original code and I what I'm supposed to replace.
Also: it uses npm instead of yarn.
The text was updated successfully, but these errors were encountered: