airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.33k stars 111 forks source link

On build error: GraphQLError: Syntax Error: Unexpected Name "WordPressAcf_content" #303

Closed matthewhoth closed 5 years ago

matthewhoth commented 5 years ago

Without the ACF plugin installed I'm able to build on Gatsby and query with graphQL no problem.

Once the plugin is activated I receive this error each time.

I've tried all possible combinations of the config below. Any help/direction at all would be much appreciated.

{
      resolve: `gatsby-source-wordpress`,
      options: {
        // The wordpress source
        baseUrl: `XXXX.wpengine.com`,
        protocol: `https`,
        // Is it hosted on wordpress.com
        hostingWPCOM: true,
        // Does the site use the Advanced Custom Fields Plugin?
        useACF: true,
        // It can help debug specific API Endpoints problems.
        verboseOutput: true
      }
    },