I am using graphql-request to get my data from Hygraph in expo SDK 51 react native app.
I get the error:
Unable to resolve "graphql-request" from "constantsGlobalApi.ts"
I looked through and nothing works. I have install graphql-request using
npm add graphql-request graphql
Anyone with help?
2
Answers
in package.json
import { request, gql } from "../node_modules/graphql-request/package.json";
this working for me