chrisvdm / redwoodjs-stripe

A Redwood/Stripe integration made easy
MIT License
46 stars 8 forks source link

Error: Could not generate GraphQL type definitions (web) on Redwood 7.4 #138

Open senpo opened 7 months ago

senpo commented 7 months ago

I used the quick start command to bootstrap. $ npx @redwoodjs-stripe/cli@latest setup

$ yarn rw generate types and $ yarn rw dev will yield the same error:

... done with errors.

Error: Could not generate GraphQL type definitions (web)

Error: GraphQL Document Validation failed with 2 errors;
  Error 0: Unknown type "StripeItemsParamsInput".
    at web/src/components/StripeItemsCell/StripeItemsCell.tsx:1:28

Error 1: Cannot query field "stripeItems" on type "Query".
    at web/src/components/StripeItemsCell/StripeItemsCell.tsx:2:3
    at codegen (node_modules/@graphql-codegen/core/cjs/codegen.js:83:19)
    ..........
chrisvdm commented 7 months ago

@senpo Thank you for bringing it up. I know about this. It just shows up when starting up but it shouldn't affect the app. Regardless, I'll look into a way to fix this, I understand it definitely does look something broke.