How to fix it? I cant find answer in internet
If the version of WPGatsby in your WordPress instance is higher than 0.10.0
it may mean you need to upgrade your version of gatsby-source-wordpress.
If the version of WPGatsby in your WordPress instance is lower than 0.9.0
it means you need to upgrade your version of WPGatsby.
Download a matching version at https://github.com/gatsbyjs/wp-gatsby/releases
or update via https://wpgatsbydemo.wpengine.com/wp-admin/plugins.php
package.json
{
"name": "gatsby-starter-default",
"private": true,
"description": "A simple starter to get up and developing quickly with Gatsby",
"version": "0.1.0",
"author": "Kyle Mathews <[email protected]>",
"dependencies": {
"gatsby": "^2.26.1",
"gatsby-image": "^2.5.0",
"gatsby-plugin-manifest": "^2.6.1",
"gatsby-plugin-offline": "^3.4.0",
"gatsby-plugin-react-helmet": "^3.4.0",
"gatsby-plugin-sharp": "^2.8.0",
"gatsby-source-filesystem": "^2.5.0",
"gatsby-source-wordpress-experimental": "^6.0.0",
"gatsby-transformer-sharp": "^2.6.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0"
},
"devDependencies": {
"prettier": "2.2.1"
},
"keywords": [
"gatsby"
],
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
wordpress plugins -
WP Gatsby Version 0.9.1
WP GraphQL Version 1.0.3
Run npm i gatsby-source-wordpress-experimental@latest
That seemed to fix it for me!
Hi @amantiwari1 , this isn't a bug. If you follow the instructions in the error message it will work. Either you need to upgrade your version of gatsby-source-wordpress-experimental or you need to upgrade your version of WPGatsby.
EDIT: you're on the latest version of the source plugin so you need to upgrade WPGatsby
Hi, @TylerBarnes and @8ctopotamus , Thanks for responding, It is working for now for same latest version of WPGatsby and gatsby-source-wordpress-experimental and upgraded in WPGraphQL 1.0.5 No Wonder!!
I have this behavior today, what I did instead.
npm remove gatsby-source-wordpress-experimental --save
npm install gatsby-source-wordpress --save
update gatsby-config.js for the said plugin name, then working as expected.
Reason behind for this approach was due to the deprecation message in cli.
Upgrade/deprecation notice:
Hi there! 馃憢 thank you so much for being a beta/alpha tester of this plugin!
You've helped us bring a much more stable WordPress integration to Gatsby and we're very thankful for that!
We've shipped this plugin as `[email protected]`.
`gatsby-source-wordpress-experimental` is now deprecated.
Please upgrade by npm/yarn installing the latest version of the stable plugin and updating your gatsby-config.js to include the stable plugin name.
We've chosen this point to release this plugin as a stable release not because there are no bugs (all software has some bugs), but because this plugin is far more stable than the last major version of `gatsby-source-wordpress`.
Note that we will continue fixing Github issues you've opened in the -experimental repo - those are not forgotten and will be transferred to the Gatsby monorepo.
Thank you! 馃挏
Most helpful comment
I have this behavior today, what I did instead.
update gatsby-config.js for the said plugin name, then working as expected.
Reason behind for this approach was due to the deprecation message in cli.