GraphQLError: Syntax Error: Unexpected Name "wordpress__complianz"
See original GitHub issueHi, we just installed the complianz.io plugin on our production website (standard WordPress) and we are getting an error when building our GatsbyJS development site.
`success Downloading remote files - 149.064s - 457/520 3.49/s success source and transform nodes - 164.366s ⠙ building schema
ERROR
UNHANDLED REJECTION Syntax Error: Unexpected Name “wordpress__complianz”
GraphQLError: Syntax Error: Unexpected Name “wordpress__complianz”
-
TypeMapper.js:113 TypeMapper.createType [gatsby-saig]/[graphql-compose]/lib/TypeMapper.js:113:43
-
ObjectTypeComposer.js:80 Function.createTemp [gatsby-saig]/[graphql-compose]/lib/ObjectTypeComposer.js:80:28
-
ObjectTypeComposer.js:56 Function.create [gatsby-saig]/[graphql-compose]/lib/ObjectTypeComposer.js:56:21
-
index.js:59 [gatsby-saig]/[gatsby]/dist/schema/infer/index.js:59:41
-
Array.forEach
-
index.js:42 addInferredTypes [gatsby-saig]/[gatsby]/dist/schema/infer/index.js:42:13
-
schema.js:184 updateSchemaComposer [gatsby-saig]/[gatsby]/dist/schema/schema.js:184:9
-
schema.js:95 async buildSchema [gatsby-saig]/[gatsby]/dist/schema/schema.js:95:3
-
index.js:136 async Object.build [gatsby-saig]/[gatsby]/dist/schema/index.js:136:18
-
index.js:419 async module.exports [gatsby-saig]/[gatsby]/dist/bootstrap/index.js:419:3
-
develop.js:422 async module.exports [gatsby-saig]/[gatsby]/dist/commands/develop.js:422:7
⠙ building schema`
Is there a way to remove complianz from GraphQL?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
@vladar, I’m sure there’s a way but it would be decently complex and site-specific. A custom normalizer could be used to rename the problematic typenames but it would likely need to be a recursive script that could get expensive. I’m glad we’ll be deprecating using Gatsby and the REST API, because there are many problems like this that we can’t reasonably account for on our side that are inherent to using an untyped REST API. I would say the best way around this right now is to use
gatsby-source-graphql
with WPGraphQL like you’re doing @kosvrouvas. Good news about that is that the new major version ofgatsby-source-wordpress
will be more similar togatsby-source-graphql/WPGraphQL
than it is to the current version ofgatsby-source-wordpress
, so upgrading from that will be easier for you anyway @kosvrouvas.Closing this as it’s an issue with gatsby-source-wordpress v3 which we aren’t actively developing anymore.