I'm facing error while accessing home page after l...
# orm-help
a
I'm facing error while accessing home page after logging in my app (only when there is a cookie present). Error: expected Undefined to be a GraphQl schema. All queries/mutations are working fine in Apollo playground. Earlier it was working fine, but I made some changes to one of my GraphQl type and I guess it is because of that. Tech used: Prisma, GraphQl,Apollo, Nexus, Next.js Can someone please suggest a solution?
πŸ€” 1
πŸ‘€ 1
n
Hey Annu πŸ‘‹ thanks a lot for raising this πŸ™Œ It’s a bit difficult to help you out only with that information. It would be great if you could open a new discussion with more information and context about your issue, that way it’s easier to reproduce the problem and help you out πŸ™‚
πŸ™Œ 1
a
Hi Nikolas, thank you for replying. I have opened a new discussion (https://github.com/prisma/prisma/discussions/14148) with details. Any advice/help will be very useful πŸ™
πŸ™ 1
@nikolasburk After spending some more of my brain cells, I have noticed that any of my graphQl queries made inside getServerSideProps function is returning the same error (expected Undefined to be a GraphQl schema). So it doesn't have to do anything with cookies or login. Also, after running generate script, my terminal activity is this: βœ… Parse configuration ➑️ Generate outputs (arrow sign in orange color) βœ… Parse configuration βœ… Generate outputs Is it possible that the schema are not getting generated which is why queries are returning undefined error from getServerSideProps? But I can use my queries/mutations in functional components. Please help whenever possible πŸ™πŸ½