Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin is not working for me, please help. #2

Open
sanky72 opened this issue Oct 13, 2021 · 0 comments
Open

The plugin is not working for me, please help. #2

sanky72 opened this issue Oct 13, 2021 · 0 comments

Comments

@sanky72
Copy link

sanky72 commented Oct 13, 2021

When I run gatsby develop after doing the steps mentioned for gatsby-config.js. I get this error - Error in "gatsbyRepo/my-wordpress-gatsby-site/node_modules/@xebiastud io/gatsby-source-graphql-multiple/gatsby-node.js": Body must be a string. Received: undefined., with this warning before the error - Plugin @xebiastudio/gatsby-source-graphql-multiple is not compatible with your gatsby version 3.3.0 - It requires gatsby@^2.0.15

My gatsby-config.js looks like this -

/**

*/

module.exports = {
/**

  • Adding plugins to this array adds them to your Gatsby site.
  • Gatsby has a rich ecosystem of plugins.
  • If you need any more you can search here: https://www.gatsbyjs.com/plugins/
    /
    plugins: [
    {
    resolve: @xebiastudio/gatsby-source-graphql-multiple,
    options: {
    typeName: MyCombinedSource,
    fieldName: myCombinedSource,
    // The paramName will create a query parameter on myCombinedSource that determines which source to use
    // As an example, let's imagine that each source contains content in a specific language
    paramName: language,
    sources: [
    {
    key: en,
    url: example.com/en/graphql
    },
    {
    key: fr,
    url: example.com/fr/graphql
    }
    ]
    }
    },
    {
    /
    * */
    resolve: gatsby-source-wordpress,
    options: {
    // the only required plugin option for WordPress is the GraphQL url.
    url:
    process.env.WPGRAPHQL_URL || 'http://localhost:8888/cmsProject/sitetwo/graphql' ||
    https://wpgatsbydemo.wpengine.com/graphql,
    },
    },
/**
 * We need this plugin so that it adds the "File.publicURL" to our site
 * It will allow us to access static url's for assets like PDF's
 *
 * See https://www.gatsbyjs.org/packages/gatsby-source-filesystem/ for more info
 */
{
  resolve: `gatsby-source-filesystem`,
  options: {
    name: `assets`,
    path: `${__dirname}/content/assets`,
  },
},

/**
 * The following two plugins are required if you want to use Gatsby image
 * See https://www.gatsbyjs.com/docs/gatsby-image/#setting-up-gatsby-image
 * if you're curious about it.
 */
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,

{
  // See https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/?=gatsby-plugin-manifest
  resolve: `gatsby-plugin-manifest`,
  options: {
    name: `Gatsby Starter WordPress Blog`,
    short_name: `GatsbyJS & WP`,
    start_url: `/`,
    background_color: `#ffffff`,
    theme_color: `#663399`,
    display: `minimal-ui`,
    icon: `content/assets/gatsby-icon.png`,
  },
},

// See https://www.gatsbyjs.com/plugins/gatsby-plugin-react-helmet/?=gatsby-plugin-react-helmet
`gatsby-plugin-react-helmet`,

/**
 * this (optional) plugin enables Progressive Web App + Offline functionality
 * To learn more, visit: https://gatsby.dev/offline
 */
// `gatsby-plugin-offline`,

],
}

My gatsby version is - "gatsby": "^3.3.0".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant