AggregateError: GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
jephjohnson opened this issue · comments
gatsby-config.js
...
{
resolve: `gatsby-plugin-typegen`,
options: {
outputPath: `./gatsby-graphql.ts`,
},
},
...
Package.json:
"dependencies": {
"@hot-loader/react-dom": "^16.11.0",
"@sanity/block-content-to-react": "^2.0.7",
"@sanity/image-url": "^0.140.19",
"@types/gsap": "^1.20.2",
"classnames": "^2.2.6",
"date-fns": "^2.16.1",
"gatsby": "^2.19.10",
"gatsby-image": "^2.2.39",
"gatsby-plugin-google-analytics": "^2.11.0",
"gatsby-plugin-google-tagmanager": "^3.1.0",
"gatsby-plugin-graphql-codegen": "^2.7.1",
"gatsby-plugin-layout": "^1.1.21",
"gatsby-plugin-manifest": "^2.2.40",
"gatsby-plugin-offline": "^3.0.33",
"gatsby-plugin-react-helmet": "^3.1.21",
"gatsby-plugin-react-svg": "^3.0.0",
"gatsby-plugin-sanity-image": "^0.6.0",
"gatsby-plugin-sass": "^2.4.2",
"gatsby-plugin-sharp": "^2.4.4",
"gatsby-plugin-sitemap": "^3.2.0",
"gatsby-plugin-tslint": "^0.0.2",
"gatsby-plugin-typegen": "^2.2.4",
"gatsby-plugin-typescript": "^2.1.26",
"gatsby-source-filesystem": "^2.1.47",
"gatsby-source-graphql": "^2.1.32",
"gatsby-source-sanity": "^5.0.5",
"gatsby-transformer-sharp": "^2.3.13",
"graphql": "^14.6.0",
"gsap": "^3.5.1",
"jszip": "^3.5.0",
"node-sass": "^4.14.1",
"react": "^17.0.1",
"react-dom": "^16.12.0",
"react-dropzone": "^11.2.4",
"react-helmet": "^5.2.1",
"react-outside-click-handler": "^1.3.0",
"react-responsive-carousel": "^3.2.10",
"react-share": "^4.3.1",
"react-toggle": "^4.1.1",
"react-typography": "^0.16.19",
"typography": "^0.16.19"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.12.1",
"@graphql-codegen/typescript": "^1.12.1",
"@types/node": "^13.5.2",
"@types/react": "^16.9.19",
"@types/react-dom": "^16.9.5",
"@types/react-helmet": "^5.0.15",
"@types/react-toggle": "^4.0.2",
"@types/styled-components": "^4.4.2",
"@types/styled-theming": "^2.2.2",
"@types/typography": "^0.16.3",
"prettier": "^1.19.1",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0",
"tslint-loader": "^3.5.4",
"tslint-react": "^4.2.0",
"typescript": "^3.7.5",
"yarn-upgrade-all": "^0.5.2"
},
Error in terminal:
error [object Object]
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
AggregateError: GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
GraphQLDocumentError: Unknown type "__FRAGMENT_TYPE_NAME__".
- AggregateError.ts:63 new AggregateError
[frontend]/[@ardatan]/src/AggregateError.ts:63:9
- validate-documents.js:53 Object.checkValidationErrors
[frontend]/[@graphql-codegen]/core/dist/utils/src/validate-documents.js:53:15
- codegen.js:63 codegen
/Users/jeph/Documents/trademark-website/frontend/dist/graphql-codegen-core/src/codegen.js:63:9
- task_queues.js:58 runNextTicks
internal/process/task_queues.js:58:5
- timers.js:434 processImmediate
internal/timers.js:434:9
- codegen.js:139
[frontend]/[gatsby-plugin-typegen]/workers/codegen.js:139:20
not finished onPostBootstrap - 0.800s
error Command failed with exit code 1.
This is fixed in v3 (currently RC)