-
Hi, I am facing an error after I try to access the Home page after logging in. I have used JWT authentication and the error pops up only while the cookie exists, it disappears when I delete the cookie, hence I can't login. Please note that all the queries/resolvers are working fine in Apollo playground. GitHub repo is here. Error: Expected undefined to be a GraphQL schema. According to me, possible mistakes committed by me are:
It will be very helpful if someone can solve this issue |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @AnnuCode , our apologies for the delay in getting back to you! Due to the large number of questions in our community channels, unfortunately this slipped through the cracks. It's very important for us to address your question, so let us know in a comment if this is still an open discussion. I am unable to reproduce this: Can you please let me know if this is still relevant and occurs? |
Beta Was this translation helpful? Give feedback.
-
Hello @vladi-stevanovic and @pantharshit00 apologies for the late reply. The above error "Error: Expected undefined to be a GraphQL schema" was caused by Nexus while trying to make a custom scalar type (date-time). The error vanished when I used a 3rd party library to create the date-time scalar('graphql-iso-date'). |
Beta Was this translation helpful? Give feedback.
Hello @vladi-stevanovic and @pantharshit00 apologies for the late reply. The above error "Error: Expected undefined to be a GraphQL schema" was caused by Nexus while trying to make a custom scalar type (date-time). The error vanished when I used a 3rd party library to create the date-time scalar('graphql-iso-date').