» yarn redwood generate cell example
✔ Generating cell files...
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.mock.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.test.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.stories.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.js`
⠹ Generating types ...
Error: Could not generate GraphQL type definitions (web)
AggregateError: GraphQL Document Validation failed with 8 errors;
Error 0: GraphQLDocumentError: Unknown type "Int".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/ExampleCell/ExampleCell.js:1:29
Error 1: GraphQLDocumentError: Cannot query field "example" on type "Query".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/ExampleCell/ExampleCell.js:2:3
Error 2: GraphQLDocumentError: Unknown type "Int".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/MeCell/MeCell.js:1:24
Error 3: GraphQLDocumentError: Cannot query field "me" on type "Query".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/MeCell/MeCell.js:2:3
Error 4: GraphQLDocumentError: Unknown type "Int".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/TestCell/TestCell.js:1:26
Error 5: GraphQLDocumentError: Cannot query field "test" on type "Query".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/TestCell/TestCell.js:2:3
Error 6: GraphQLDocumentError: Unknown type "Int".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/UserExampleCell/UserExampleCell.js:1:33
Error 7: GraphQLDocumentError: Cannot query field "userExample" on type "Query".
at /private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/web/src/components/UserExampleCell/UserExampleCell.js:2:3
at Object.checkValidationErrors (/private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/node_modules/@graphql-tools/utils/index.js:1252:15)
at codegen (/private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/node_modules/@graphql-codegen/core/index.js:175:15)
at async runCodegenGraphQL (/private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/node_modules/@redwoodjs/internal/dist/generate/graphqlCodeGen.js:114:18)
at async generateTypeDefGraphQLWeb (/private/var/folders/nr/8s8lg_7s0q581yjmssrvywph0000gn/T/example.com/node_m
✔ Generating cell files...
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.mock.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.test.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.stories.js`
✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.js`
✔ Generating types ...
Last active
April 13, 2022 17:53
-
-
Save wilmoore/81c9d56ab8e8ab9f682adbdadb6eba89 to your computer and use it in GitHub Desktop.
Cell Generator Errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datasource db { | |
provider = "sqlite" | |
url = env("DATABASE_URL") | |
} | |
generator client { | |
provider = "prisma-client-js" | |
binaryTargets = "native" | |
} | |
model UserExample { | |
id Int @id @default(autoincrement()) | |
email String @unique | |
name String? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment