Bryan Z
09/08/2022, 6:16 PMconst { data, error, isLoading } = useQuery(['links'], resolvers.Query.links)
Where resolvers.Query.links
is links: async () => prisma.link.findMany()
I'm getting the error
Invalid environment variables:
DATABASE_URL: Required
NODE_ENV: Required
But DATABASE_URL is specified in the root .env file. Previously I was using Apollo Client and didn't encounter this issue.Pedro Poveda
09/08/2022, 10:31 PMBryan Z
09/08/2022, 11:05 PMRaphael Etim
09/09/2022, 6:17 AMBryan Z
09/09/2022, 5:31 PMBryan Z
09/13/2022, 12:25 AMRaphael Etim
09/13/2022, 8:08 AMBryan Z
09/13/2022, 10:42 PMcd prisma-react-query-issue/
and run npm run dev
to start the server, the Webview should then reload to show the error in the screenshotAustin
09/16/2022, 6:17 PMBryan Z
09/16/2022, 6:31 PMPedro Poveda
09/16/2022, 6:41 PMPedro Poveda
09/16/2022, 6:41 PMPedro Poveda
09/16/2022, 6:41 PMBryan Z
09/16/2022, 6:51 PM