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

Promotion type error when running pnpm run generate #210

Open
DGLcsGaming opened this issue Mar 14, 2023 · 0 comments
Open

Promotion type error when running pnpm run generate #210

DGLcsGaming opened this issue Mar 14, 2023 · 0 comments

Comments

@DGLcsGaming
Copy link

Replication Steps:

  • Clone trunk branch or any other branch.
  • pnpm install
  • pnpm run generate

I get these errors:

> graphql-codegen --config codegen.yml

  ✔ Parse configuration
  ❯ Generate outputs
    ❯ Generate src/graphql/generates.ts
      ✔ Load GraphQL schemas
      ✔ Load GraphQL documents
      ✖ Generate
        →     at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/
…


 Found 1 error

  ✖ src/graphql/generates.ts
    AggregateError: GraphQL Document Validation failed with 8 errors;
      Error 0: GraphQLDocumentError: Unknown type "PromotionFilter".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:8:12

    Error 1: GraphQLDocumentError: Cannot query field "promotions" on type "Query".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:12:5

    Error 2: GraphQLDocumentError: Unknown type "PromotionQueryInput".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:45:28

    Error 3: GraphQLDocumentError: Cannot query field "promotion" on type "Query".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:46:3

    Error 4: GraphQLDocumentError: Unknown type "PromotionUpdateInput". Did you mean
 "RemoveDataInput"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:76:34

    Error 5: GraphQLDocumentError: Cannot query field "updatePromotion" on type "Mut
ation". Did you mean "updateProduct"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:77:3

    Error 6: GraphQLDocumentError: Unknown type "PromotionCreateInput". Did you mean
 "CreateTaxRateInput" or "NavigationTreeInput"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:85:34

    Error 7: GraphQLDocumentError: Cannot query field "createPromotion" on type "Mut
ation". Did you mean "createProduct"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:86:3
        at new exports.AggregateError (/home/dglcsgaming/reaction-test/kinetic-feat-
promotion-details/node_modules/.pnpm/@[email protected][email protected]/node
_modules/@graphql-tools/utils/index.js:99:16)
        at Object.checkValidationErrors (/home/dglcsgaming/reaction-test/kinetic-fea
t-promotion-details/node_modules/.pnpm/@[email protected][email protected]/no
de_modules/@graphql-tools/utils/index.js:1277:15)
        at Object.codegen (/home/dglcsgaming/reaction-test/kinetic-feat-promotion-de
tails/node_modules/.pnpm/@[email protected][email protected]/node_modules/@gr
aphql-codegen/core/index.js:175:15)
        at async process (/home/dglcsgaming/reaction-test/kinetic-feat-promotion-det
ails/node_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_m
odules/@graphql-codegen/cli/bin.js:1126:56)
        at async Promise.all (index 0)
        at async /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/node
_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_modules/@g
raphql-codegen/cli/bin.js:1136:37
        at async /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/node
_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_modules/@g
raphql-codegen/cli/bin.js:925:21
    AggregateError: GraphQL Document Validation failed with 8 errors;
      Error 0: GraphQLDocumentError: Unknown type "PromotionFilter".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:8:12

    Error 1: GraphQLDocumentError: Cannot query field "promotions" on type "Query".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:12:5

    Error 2: GraphQLDocumentError: Unknown type "PromotionQueryInput".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:45:28

    Error 3: GraphQLDocumentError: Cannot query field "promotion" on type "Query".
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:46:3

    Error 4: GraphQLDocumentError: Unknown type "PromotionUpdateInput". Did you mean
 "RemoveDataInput"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:76:34

    Error 5: GraphQLDocumentError: Cannot query field "updatePromotion" on type "Mut
ation". Did you mean "updateProduct"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:77:3

    Error 6: GraphQLDocumentError: Unknown type "PromotionCreateInput". Did you mean
 "CreateTaxRateInput" or "NavigationTreeInput"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:85:34

    Error 7: GraphQLDocumentError: Cannot query field "createPromotion" on type "Mut
ation". Did you mean "createProduct"?
        at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/
Promotions/promotions.graphql:86:3
        at new exports.AggregateError (/home/dglcsgaming/reaction-test/kinetic-feat-
promotion-details/node_modules/.pnpm/@[email protected][email protected]/node
_modules/@graphql-tools/utils/index.js:99:16)
        at Object.checkValidationErrors (/home/dglcsgaming/reaction-test/kinetic-fea
t-promotion-details/node_modules/.pnpm/@[email protected][email protected]/no
de_modules/@graphql-tools/utils/index.js:1277:15)
        at Object.codegen (/home/dglcsgaming/reaction-test/kinetic-feat-promotion-de
tails/node_modules/.pnpm/@[email protected][email protected]/node_modules/@gr
aphql-codegen/core/index.js:175:15)
        at async process (/home/dglcsgaming/reaction-test/kinetic-feat-promotion-det
ails/node_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_m
odules/@graphql-codegen/cli/bin.js:1126:56)
        at async Promise.all (index 0)
        at async /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/node
_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_modules/@g
raphql-codegen/cli/bin.js:1136:37
        at async /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/node
_modules/.pnpm/@[email protected]_fvukzu7z6wfjxvwqanosrw6g6m/node_modules/@g
raphql-codegen/cli/bin.js:925:21


Something went wrong GraphQL Document Validation failed with 8 errors;
  Error 0: GraphQLDocumentError: Unknown type "PromotionFilter".
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:8:12

Error 1: GraphQLDocumentError: Cannot query field "promotions" on type "Query".
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:12:5

Error 2: GraphQLDocumentError: Unknown type "PromotionQueryInput".
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:45:28

Error 3: GraphQLDocumentError: Cannot query field "promotion" on type "Query".
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:46:3

Error 4: GraphQLDocumentError: Unknown type "PromotionUpdateInput". Did you mean "RemoveDataInput"?
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:76:34

Error 5: GraphQLDocumentError: Cannot query field "updatePromotion" on type "Mutation". Did you mean "updateProduct"?
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:77:3

Error 6: GraphQLDocumentError: Unknown type "PromotionCreateInput". Did you mean "CreateTaxRateInput" or "NavigationTreeInput"?
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:85:34

Error 7: GraphQLDocumentError: Cannot query field "createPromotion" on type "Mutation". Did you mean "createProduct"?
    at /home/dglcsgaming/reaction-test/kinetic-feat-promotion-details/src/pages/Promotions/promotions.graphql:86:3
 ELIFECYCLE  Command failed with exit code 1.
 ```
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