I just updated to gatsby-plugin image and made some necessary package upgrades with gatsbyjs and have no issues locally but Netlify is having issues deploying my site in staging. Here is what I got in the console (partial because too long):
Started saving yarn cache
6:17:03 PM: node:internal/modules/cjs/loader:936
6:17:03 PM: throw err;
6:17:03 PM: ^
6:17:03 PM: Error: Cannot find module ‘./reducers/page-tree’
6:17:03 PM: Require stack:
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
6:17:03 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19)
6:17:03 PM: at require (node:internal/modules/cjs/helpers:102:18)
6:17:03 PM: at Object. (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js:10:17)
6:17:03 PM: at Module._compile (node:internal/modules/cjs/loader:1101:14)
6:17:03 PM: at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
6:17:03 PM: at Module.load (node:internal/modules/cjs/loader:981:32)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19) {
6:17:03 PM: code: ‘MODULE_NOT_FOUND’,
6:17:03 PM: requireStack: [
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-worker/dist/child.js’
6:17:03 PM: ]
6:17:03 PM: }
6:17:03 PM: node:internal/modules/cjs/loader:936
6:17:03 PM: throw err;
6:17:03 PM: ^
6:17:03 PM: Error: Cannot find module ‘./reducers/page-tree’
6:17:03 PM: Require stack:
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
6:17:03 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19)
6:17:03 PM: at require (node:internal/modules/cjs/helpers:102:18)
6:17:03 PM: at Object. (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js:10:17)
6:17:03 PM: at Module._compile (node:internal/modules/cjs/loader:1101:14)
6:17:03 PM: at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
6:17:03 PM: at Module.load (node:internal/modules/cjs/loader:981:32)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19) {
6:17:03 PM: code: ‘MODULE_NOT_FOUND’,
6:17:03 PM: requireStack: [
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-worker/dist/child.js’
6:17:03 PM: ]
6:17:03 PM: }
6:17:03 PM: node:internal/modules/cjs/loader:936
6:17:03 PM: throw err;
6:17:03 PM: ^
6:17:03 PM: Error: Cannot find module ‘./reducers/page-tree’
6:17:03 PM: Require stack:
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
6:17:03 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
6:17:03 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19)
6:17:03 PM: at require (node:internal/modules/cjs/helpers:102:18)
6:17:03 PM: at Object. (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js:10:17)
6:17:03 PM: at Module._compile (node:internal/modules/cjs/loader:1101:14)
6:17:03 PM: at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
6:17:03 PM: at Module.load (node:internal/modules/cjs/loader:981:32)
6:17:03 PM: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
6:17:03 PM: at Module.require (node:internal/modules/cjs/loader:1005:19) {
6:17:03 PM: code: ‘MODULE_NOT_FOUND’,
6:17:03 PM: requireStack: [
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/actions.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/program.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js’,
6:17:03 PM: ‘/opt/build/repo/node_modules/gatsby-worker/dist/child.js’
6:17:03 PM: ]
6:17:03 PM: }
6:18:27 PM: Execution timed out after 18m22.021290212s
6:18:27 PM: Error running command: Command did not finish within the time limit
6:18:27 PM: Creating deploy upload records
6:18:27 PM: Failing build: Failed to build site
6:18:28 PM: Failed during stage ‘building site’: Command did not finish within the time limit
6:18:28 PM: Finished processing build request in 18m31.403907118s