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
$ graphql codegen
(node:44387) UnhandledPromiseRejectionWarning: Error: Cannot find module '@graphql-inspector/graphql-cli-common'
Require stack:
- /path/to/project/node_modules/@graphql-cli/diff/index.cjs.js
- /path/to/project/node_modules/graphql-cli/dist/index.js
- /path/to/project/node_modules/graphql-cli/dist/bin.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/path/to/project/node_modules/@graphql-cli/diff/index.cjs.js:5:26)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at loadCommand (/path/to/project/node_modules/graphql-cli/dist/index.js:46:17)
at Array.map (<anonymous>)
at Object.cli (/path/to/project/node_modules/graphql-cli/dist/index.js:17:68)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:44387) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:44387) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨ Done in 3.43s.
Expected behavior
I expect an error to not be thrown and for it do generate code.
Environment:
OS: Mac OS 11.1
@graphql-cli/diff
graphql:
NodeJS: v12.18.3
Additional context
When going through the stack trace, it is being caused by a missing dependency.
Describe the bug
Error when trying to generate code w/ graphql-cli
To Reproduce
Steps to reproduce the behavior:
GraphQL-CLI
graphql:codegen
Expected behavior
I expect an error to not be thrown and for it do generate code.
Environment:
@graphql-cli/diff
graphql
:Additional context
When going through the stack trace, it is being caused by a missing dependency.
graphql-inspector/packages/graphql-cli/diff/package.json
Lines 30 to 35 in 34c08a6
graphql-inspector/packages/graphql-cli/diff/src/index.ts
Lines 2 to 7 in 34c08a6
The text was updated successfully, but these errors were encountered: