diff --git a/packages/gatsby-dev-cli/src/utils/check-deps-changes.js b/packages/gatsby-dev-cli/src/utils/check-deps-changes.js index b2fb3b1253fab..ed742eb068aca 100644 --- a/packages/gatsby-dev-cli/src/utils/check-deps-changes.js +++ b/packages/gatsby-dev-cli/src/utils/check-deps-changes.js @@ -103,6 +103,9 @@ exports.checkDepsChanges = async ({ } } + if (!monorepoPKGjson.dependencies) monorepoPKGjson.dependencies = {} + if (!localPKGjson.dependencies) localPKGjson.dependencies = {} + const areDepsEqual = _.isEqual( monorepoPKGjson.dependencies, localPKGjson.dependencies