question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQLError: Syntax Error: Unexpected Name "wordpress__complianz"

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
TylerBarnescommented, Feb 8, 2020

@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 of gatsby-source-wordpress will be more similar to gatsby-source-graphql/WPGraphQL than it is to the current version of gatsby-source-wordpress, so upgrading from that will be easier for you anyway @kosvrouvas.

0reactions
TylerBarnescommented, Mar 18, 2021

Closing this as it’s an issue with gatsby-source-wordpress v3 which we aren’t actively developing anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQLError: Syntax Error: Unexpected Name ...
Indeed, I'm getting the following error: GraphQLError: Syntax Error: Unexpected Name "WordPressPost_YoastJsonLd_". I'm using Gridsome 0.7.12 and WordPress ...
Read more >
GraphQLError: Syntax Error: Unexpected "(" - Stack Overflow
I am trying to pass $arrival as a variable into the query, dynamically calling arrivals by station ID. It was working yesterday but...
Read more >
Fatal Error: This website is experiencing technical difficulties…
Login to your FTP client and search for your WordPress installation root. Go to /wp-content/plugins/ and change the name of the Complianz folder....
Read more >
GraphQLError: Syntax Error: Unexpected Name "undefined"
GraphQLError : Syntax Error: Unexpected Name “undefined” ... If you see any variation of this error in GraphQL while trying to use a...
Read more >
GraphQLError [Object]: Syntax Error: Unexpected Na... - Neo4j
GraphQLError [Object]: Syntax Error: Unexpected Name "extends". at syntaxError (/myproject/node_modules/graphql/error/syntaxError.js:15:10) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found