ShaifArfan / techHub-blog

A complete blog website using sanity.io + gatsby.js
https://techhub-blog.vercel.app/
47 stars 22 forks source link

I'm facing error when i have to deploy graphql in studio folder using this commnd : sanity graphql deploy #15

Open mohil-8twelve-mortgage opened 1 year ago

mohil-8twelve-mortgage commented 1 year ago

✔ Checking for deployed API ? Do you want to enable a GraphQL playground? Yes ✔ Generating GraphQL schema ✖ Validating GraphQL API

ReferenceError: URL is not defined at handler (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/@sanity/cli/node_modules/get-it/src/middleware/defaultOptionsProcessor.ts:13:15) at applyMiddleware (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/@sanity/cli/node_modules/get-it/src/util/middlewareReducer.ts:8:15) at requester (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/@sanity/cli/node_modules/get-it/src/createRequester.ts:44:21) at httpRequest (C:/Users/INILPTP044/AppData/Roaming Screenshot 2023-03-30 204908 /npm/node_modules/@sanity/client/dist/index.js:107:12) at Observable._subscribe (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/@sanity/client/dist/index.js:821:3)
at Observable._trySubscribe (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/rxjs/dist/esm5/internal/Observable.js:38:25) at cb (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/rxjs/dist/esm5/internal/Observable.js:32:31) at errorContext (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/rxjs/dist/esm5/internal/util/errorContext.js:19:9) at Observable.subscribe (C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/rxjs/dist/esm5/internal/Observable.js:23:9) at C:/Users/INILPTP044/AppData/Roaming/npm/node_modules/rxjs/dist/esm5/internal/operators/filter.js:6:16 Screenshot 2023-03-30 204908

PhantomLord666 commented 1 year ago

Is the version of cli, you have to use v2