Skip to content
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

Issue in React application - TypeError Cannot read properties of undefined (reading DemoGraph) #1

Open
stratigon opened this issue Dec 2, 2021 · 1 comment

Comments

@stratigon
Copy link

Hi!
Thank you for this repo, it's helped a lot!
GraphQL part work as expected.

Have an issue with React app - you can see below:
I
Снимок экрана 2021-12-02 в 15 08 48
Снимок экрана 2021-12-02 в 15 08 55

I'm not an expert in React, but the steps were reproduced as in the README file.

@songrenchu
Copy link
Contributor

songrenchu commented Dec 19, 2021

Hi @stratigon,

The error looks like that Apollo is not getting valid GraphQL response from the TigerGraph GraphQL service.
Could you share a screenshot of the GraphQL part in your browser including the URL bar, and the config.json file in the React app?
From the 2nd screenshot you shared, the react app is running on 10.199.199.127. Which IP is the TigerGraph GraphQL service running at? Does the app machine 10.199.199.127 have access to that machine? If they are not on the same machine, is CORS configured?
If you are using Chrome, you can also open View -> Developer -> JavaScript console on the web app page, refresh the page, and see what error message is logged there. Please paste the error message here and we can further investigate

Best,
Renchu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants