Skip to content

GraphQL error #1478

@dream1xd

Description

@dream1xd

whatsapp-clone-client@0.1.0 prebuild /home/whatsru/WhatsApp-Clone-Client-React-master
yarn codegen

yarn run v1.22.18
$ graphql-codegen
✔ Parse configuration
❯ Generate outputs
❯ Generate ./src/graphql/types.tsx
✖ Load GraphQL schemas
→ Failed to load schema
Load GraphQL documents
Generate

Found 1 error

✖ ./src/graphql/types.tsx
Failed to load schema from ../WhatsApp-Clone-Server/modules/*/index.ts:

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

      - ../WhatsApp-Clone-Server/modules/*/index.ts

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

      - ../WhatsApp-Clone-Server/modules/*/index.ts

at prepareResult (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-toolkit/core/index.cjs.js:1138:15)
at loadTypedefs (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-toolkit/core/index.cjs.js:1108:12)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.loadSchema (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-toolkit/core/index.cjs.js:1161:21)
at async loadSchema (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:396:24)
at async /home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:763:55
at async Task.task (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:618:17)

    GraphQL Code Generator supports:
      - ES Modules and CommonJS exports (export as default or named export "schema")
      - Introspection JSON File
      - URL of GraphQL endpoint
      - Multiple files with type definitions (glob expression)
      - String in config file

    Try to use one of above options and run codegen again.
Error: Failed to load schema
    at loadSchema (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:406:15)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:763:55
    at async Task.task (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:618:17)
Error: Failed to load schema
    at loadSchema (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:406:15)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:763:55
    at async Task.task (/home/whatsru/WhatsApp-Clone-Client-React-master/node_modules/@graphql-codegen/cli/bin.js:618:17)

Something went wrong
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! whatsapp-clone-client@0.1.0 prebuild: yarn codegen
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the whatsapp-clone-client@0.1.0 prebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-07T08_21_27_029Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions