Codegen and Graphql-Request Error: Server Error TypeError: Cannot read properties of null (reading ‘useState’)

Codegen and Graphql-Request Error: Server Error TypeError: Cannot read properties of null (reading ‘useState’)


0

This is the Error image im getting when I start my frontend

Server Error
TypeError: Cannot read properties of null (reading ‘useState’)

This error happened while generating the page. Any console logs will be displayed in the terminal window.

I am building a Full stack App using NextJs,GraphQL and codegen. When i run the frontend , it shows me the above error i have been trying to fix it but not able to do it.

I tried altering thte server and queries of graphql , not able to get the frontend , shows useState error but i am not using useState in my frontend.

Expected: Frontend landing page has to be viewed properly and allow for authentication using gogle.

New contributor

Neeraj GS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 4 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *