Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL error #1478

Open
dream1xd opened this issue Apr 7, 2022 · 0 comments
Open

GraphQL error #1478

dream1xd opened this issue Apr 7, 2022 · 0 comments

Comments

@dream1xd
Copy link

dream1xd commented Apr 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant