You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✖ ./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! [email protected] prebuild: yarn codegen
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
The text was updated successfully, but these errors were encountered:
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:
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! [email protected] prebuild:
yarn codegen
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
The text was updated successfully, but these errors were encountered: