diff --git a/examples/recipe-sourcing-contentful/package.json b/examples/recipe-sourcing-contentful/package.json
index adc68a83a9ebe..2dc2d99960fdd 100644
--- a/examples/recipe-sourcing-contentful/package.json
+++ b/examples/recipe-sourcing-contentful/package.json
@@ -5,10 +5,10 @@
   "version": "0.1.0",
   "author": "@gatsbyjs",
   "dependencies": {
-    "gatsby": "^2.15.14",
+    "gatsby": "^4.0.0",
     "gatsby-image": "^2.2.18",
     "gatsby-plugin-offline": "^2.2.10",
-    "gatsby-source-contentful": "^2.1.35",
+    "gatsby-source-contentful": "^7.18.0",
     "gatsby-transformer-remark": "^2.6.22",
     "prop-types": "^15.7.2",
     "react": "^16.9.0",