[GH-ISSUE #2787] [bug]: Failed to load schema for "src/helpers/backend/backend-schema.json" #903

Closed
opened 2026-03-16 17:37:10 +03:00 by kerem · 3 comments
Owner

Originally created by @yashram96 on GitHub (Oct 15, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2787

Originally assigned to: @AndrewBastin on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When i ran pnpm install
i got below errors

packages/hoppscotch-app postinstall$ pnpm run gql-codegen
│ > hoppscotch-app@3.0.1 gql-codegen /home/yashram/apiclient/hoppscotch/packages/hoppscotch-app
│ > graphql-codegen --require dotenv/config --config gql-codegen.yml
│ [STARTED] Parse Configuration
│ [SUCCESS] Parse Configuration
│ [STARTED] Generate outputs
│ [STARTED] Generate src/helpers/backend/graphql.ts
│ [STARTED] Load GraphQL schemas
│ [FAILED] Failed to load schema
│ [FAILED] Failed to load schema
│ Failed to load schema for "src/helpers/backend/backend-schema.json"
│ Failed to load schema from undefined:

│ Unable to find any GraphQL type definitions for the following pointers:

│ - undefined

'
'
'
'
'
│ [STARTED] Generate src/helpers/backend/backend-schema.json
│ [STARTED] Load GraphQL schemas
│ [SUCCESS] Generate outputs
│  ELIFECYCLE  Command failed with exit code 1.
└─ Failed in 1.7s
 ELIFECYCLE  Command failed with exit code 1.

Steps to reproduce

Run pnpm install
you will get error

Environment

Deploy preview

Version

Self-hosted

Originally created by @yashram96 on GitHub (Oct 15, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2787 Originally assigned to: @AndrewBastin on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When i ran pnpm install i got below errors packages/hoppscotch-app postinstall$ pnpm run gql-codegen │ > hoppscotch-app@3.0.1 gql-codegen /home/yashram/apiclient/hoppscotch/packages/hoppscotch-app │ > graphql-codegen --require dotenv/config --config gql-codegen.yml │ [STARTED] Parse Configuration │ [SUCCESS] Parse Configuration │ [STARTED] Generate outputs │ [STARTED] Generate src/helpers/backend/graphql.ts │ [STARTED] Load GraphQL schemas │ [FAILED] Failed to load schema │ [FAILED] Failed to load schema │ Failed to load schema for "src/helpers/backend/backend-schema.json" │ Failed to load schema from undefined: │ │ Unable to find any GraphQL type definitions for the following pointers: │ │ - undefined ' ' ' ' ' │ [STARTED] Generate src/helpers/backend/backend-schema.json │ [STARTED] Load GraphQL schemas │ [SUCCESS] Generate outputs │  ELIFECYCLE  Command failed with exit code 1. └─ Failed in 1.7s  ELIFECYCLE  Command failed with exit code 1. ### Steps to reproduce Run pnpm install you will get error ### Environment Deploy preview ### Version Self-hosted
kerem 2026-03-16 17:37:10 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Oct 15, 2022):

Copy .env.example in packages/hoppscotch-app and paste and rename it as .env

@liyasthomas update README ?

<!-- gh-comment-id:1279700601 --> @AndrewBastin commented on GitHub (Oct 15, 2022): Copy `.env.example` in `packages/hoppscotch-app` and paste and rename it as `.env` @liyasthomas update README ?
Author
Owner

@ziyangcommon commented on GitHub (Jan 11, 2023):

readme file seems not update yet

<!-- gh-comment-id:1378204491 --> @ziyangcommon commented on GitHub (Jan 11, 2023): readme file seems not update yet
Author
Owner

@liyasthomas commented on GitHub (Jan 11, 2023):

Here's the link to README's "Developing" section.

Screenshot 2023-01-11 at 9 18 05 AM
<!-- gh-comment-id:1378207301 --> @liyasthomas commented on GitHub (Jan 11, 2023): [Here's the link to README's "Developing" section.](https://github.com/hoppscotch/hoppscotch#developing) <img width="927" alt="Screenshot 2023-01-11 at 9 18 05 AM" src="https://user-images.githubusercontent.com/10395817/211713510-c8729eae-12a5-4977-ab7e-5ad351db2b8c.png">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#903
No description provided.