-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
TypeError: Cannot read properties of undefined (reading 'FIELD') #9659
Comments
This StackOverflow answer helped me: https://stackoverflow.com/a/71504548
|
I can replicate on CodeSandbox with |
I ran into the same issue and I was able to fix it by changing the react version used in the sandbox.
|
@StephenBarlow It sounds like we have dependency version issue on this particular code sandbox tutorial Could we update the sandbox package.json to more current versions of each package type? |
@alessbell I'll follow up on this, thanks for confirming! |
The following message was added to our getting started docs last week:
Going to close out this issue for now, thanks for reporting @jwhunt19! |
Intended outcome:
Get apollo-client working on codesandbox.io react template
Actual outcome:
Receiving the following error when I attempt to initialize an ApolloClient instance in step 2 following this guide https://www.apollographql.com/docs/react/get-started/
Here is the code sandbox: https://codesandbox.io/s/naughty-wiles-ygmexk?file=/src/App.js
Here is the error:
`TypeError: Cannot read properties of undefined (reading 'FIELD')
at $csb$eval (https://qt7y3u.csb.app/node_modules/graphql/type/directives.mjs:66:50)
How to reproduce the issue:
go to codesandbox.io and create a new sandbox with their official react template and then follow the steps in this guide https://www.apollographql.com/docs/react/get-started/
Versions
![image](https://user-images.githubusercontent.com/31941664/166335441-4fafcaad-709c-44dd-9940-23dbafc3cee1.png)
cant find terminal to run supplied command, instead here is a screenshot
The text was updated successfully, but these errors were encountered: