Plugin "@netlify/plugin-gatsby" internal error - Cannot find module '@gatsbyjs/reach-router'

Hi - I started having deployment fails today for plugin "@netlify/plugin-gatsby" internal error.
Deployments worked fine until Jan 27 (last CMS update) and I did not have any the plugin installed.

So I tried to install @netlify/plugin-gatsby but that did not solve the issue, I got the same error.
Which seems to be Cannot find module '@gatsbyjs/reach-router'
When I looked up this package in npm it says " Use this fork at your own risk

Any help is greatly appreciated!

Netlify site name - lmb68

Deployment logs

10:05:44 AM: build-image version: f40c5967c3e09a056e8b79397ce4f1c76d0df777 (focal)
10:05:44 AM: buildbot version: f40c5967c3e09a056e8b79397ce4f1c76d0df777
10:05:44 AM: Fetching cached dependencies
10:05:44 AM: Starting to download cache of 799.4MB
10:05:52 AM: Finished downloading cache in 8.094s
10:05:52 AM: Starting to extract cache
10:05:57 AM: Finished extracting cache in 4.295s
10:05:57 AM: Finished fetching cache in 12.47s
10:05:57 AM: Starting to prepare the repo for build
10:05:57 AM: Preparing Git Reference refs/heads/master
10:05:58 AM: Parsing package.json dependencies
10:06:00 AM: Starting build script
10:06:00 AM: Installing dependencies
10:06:00 AM: Python version set to 2.7
10:06:00 AM: Started restoring cached Node.js version
10:06:02 AM: Finished restoring cached Node.js version
10:06:02 AM: v12.18.0 is already installed.
10:06:02 AM: Now using node v12.18.0 (npm v6.14.4)
10:06:02 AM: Started restoring cached build plugins
10:06:02 AM: Finished restoring cached build plugins
10:06:02 AM: Attempting Ruby version 2.7.1, read from environment
10:06:02 AM: Started restoring cached Ruby version
10:06:03 AM: Finished restoring cached Ruby version
10:06:03 AM: Using Ruby version 2.7.1
10:06:03 AM: Using PHP version 8.0
10:06:03 AM: Started restoring cached corepack dependencies
10:06:03 AM: mv: cannot move '/opt/build/cache/.node/corepack' to '/opt/buildhome/.node/corepack': No such file or directory
10:06:03 AM: Finished restoring cached corepack dependencies
10:06:03 AM: No npm workspaces detected
10:06:03 AM: Started restoring cached node modules
10:06:03 AM: Finished restoring cached node modules
10:06:03 AM: Bypassing sha validation. Running pre & post install scripts
10:06:03 AM: Installing npm packages using npm version 6.14.4
10:06:08 AM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
10:06:13 AM: > sharp@0.30.7 install /opt/build/repo/node_modules/ipx/node_modules/sharp
10:06:13 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
10:06:13 AM: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br
10:06:14 AM: sharp: Integrity check passed for linux-x64
10:06:15 AM: npm WARN notsup Unsupported engine for @netlify/plugin-gatsby@3.5.1: wanted: {"node":">=14.17.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: @netlify/plugin-gatsby@3.5.1
10:06:15 AM: npm WARN notsup Unsupported engine for fs-extra@11.1.0: wanted: {"node":">=14.14"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: fs-extra@11.1.0
10:06:15 AM: npm WARN notsup Unsupported engine for clipboardy@3.0.0: wanted: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: clipboardy@3.0.0
10:06:15 AM: npm WARN notsup Unsupported engine for ioredis@5.3.0: wanted: {"node":">=12.22.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: ioredis@5.3.0
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/unstorage/node_modules/chokidar/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN notsup Unsupported engine for clipboardy@3.0.0: wanted: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: clipboardy@3.0.0
10:06:15 AM: npm WARN notsup Unsupported engine for ip-regex@5.0.0: wanted: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:06:15 AM: npm WARN notsup Not compatible with your version of node/npm: ip-regex@5.0.0
10:06:15 AM: npm WARN gatsby-plugin-sass@2.8.0 requires a peer of node-sass@^4.9.0 but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN gatsby-source-filesystem@1.5.39 requires a peer of gatsby@^1.9.250 but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN slick-carousel@1.8.1 requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN ts-node@9.1.1 requires a peer of typescript@>=2.7 but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN @netlify/plugin-gatsby@3.5.1 requires a peer of @gatsbyjs/reach-router@* but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN @netlify/plugin-gatsby@3.5.1 requires a peer of common-tags@^1.8.2 but none is installed. You must install peer dependencies yourself.
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/babel-cli/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/babel-plugin-add-module-exports/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/gatsby-source-strapi/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
10:06:15 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:06:15 AM: added 136 packages from 264 contributors and audited 2946 packages in 11.681s
10:06:16 AM: 216 packages are looking for funding
10:06:16 AM:   run `npm fund` for details
10:06:16 AM: found 324 vulnerabilities (17 low, 122 moderate, 151 high, 34 critical)
10:06:16 AM:   run `npm audit fix` to fix them, or `npm audit` for details
10:06:16 AM: npm packages installed
10:06:16 AM: Started restoring cached go cache
10:06:16 AM: Finished restoring cached go cache
10:06:16 AM: Installing Go version 1.14.4 (requested 1.14.4)
10:06:20 AM: unset GOOS;
10:06:20 AM: unset GOARCH;
10:06:20 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.14.4.linux.amd64';
10:06:20 AM: export PATH="/opt/buildhome/.gimme/versions/go1.14.4.linux.amd64/bin:${PATH}";
10:06:20 AM: go version >&2;
10:06:20 AM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.14.4.linux.amd64.env"
10:06:20 AM: go version go1.14.4 linux/amd64
10:06:21 AM: Detected 1 framework(s)
10:06:21 AM: "gatsby" at version "2.29.0"
10:06:21 AM: Installing missing commands
10:06:21 AM: Verify run directory
10:06:21 AM: Section completed: initializing
10:06:22 AM: ​
10:06:22 AM:   Netlify Build                                                 
10:06:22 AM: ────────────────────────────────────────────────────────────────
10:06:22 AM: ​
10:06:22 AM: ❯ Version
10:06:22 AM:   @netlify/build 29.5.4
10:06:22 AM: ​
10:06:22 AM: ❯ Flags
10:06:22 AM:   baseRelDir: true
10:06:22 AM:   buildId: 63dcce663104c4000834be83
10:06:22 AM:   deployId: 63dcce663104c4000834be85
10:06:22 AM: ​
10:06:22 AM: ❯ Current directory
10:06:22 AM:   /opt/build/repo
10:06:22 AM: ​
10:06:22 AM: ❯ Config file
10:06:22 AM:   /opt/build/repo/netlify.toml
10:06:22 AM: ​
10:06:22 AM: ❯ Context
10:06:22 AM:   production
10:06:22 AM: ​
10:06:22 AM: ❯ Warning: @netlify/plugin-gatsby will be executed with Node.js version 16.19.0
10:06:22 AM:   The plugin cannot be executed with your defined Node.js version 12.18.0
10:06:22 AM: ​
10:06:22 AM:   Read more about our minimum required version in our forums announcement (​https://answers.netlify.com/t/build-plugins-dropping-support-for-node-js-12/79421​)
10:06:22 AM: ​
10:06:22 AM: ❯ Loading plugins
10:06:22 AM:    - @netlify/plugin-gatsby@3.5.1 from undefined and package.json
10:06:24 AM: ​
10:06:24 AM:   Plugin "@netlify/plugin-gatsby" internal error                
10:06:24 AM: ────────────────────────────────────────────────────────────────
10:06:24 AM: ​
10:06:24 AM:   Error message
10:06:24 AM:   Could not import plugin:
10:06:24 AM:   Error: Cannot find module '@gatsbyjs/reach-router'
10:06:24 AM:   Require stack:
10:06:24 AM:   - /opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/templates/api/gatsbyFunction.js
10:06:24 AM:   - /opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/templates/handlers.js
10:06:24 AM:   - /opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/helpers/functions.js
10:06:24 AM:   - /opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/index.js
10:06:24 AM: ​
10:06:24 AM:   Plugin details
10:06:24 AM:   Package:        @netlify/plugin-gatsby
10:06:24 AM:   Version:        3.5.1
10:06:24 AM:   Repository:     git+https://github.com/netlify/netlify-plugin-gatsby.git
10:06:24 AM: Failed during stage 'building site': Build script returned non-zero exit code: 3 (https://ntl.fyi/exit-code-3)
10:06:24 AM:   npm link:       https://www.npmjs.com/package/@netlify/plugin-gatsby
10:06:24 AM:   Report issues:  https://github.com/netlify/netlify-plugin-gatsby/issues
10:06:24 AM: ​
10:06:24 AM:   Error location
10:06:24 AM:   While loading "@netlify/plugin-gatsby" from undefined and package.json
10:06:24 AM:       at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
10:06:24 AM:       at Function.Module._load (node:internal/modules/cjs/loader:841:27)
10:06:24 AM:       at Module.require (node:internal/modules/cjs/loader:1067:19)
10:06:24 AM:       at require (node:internal/modules/cjs/helpers:103:18)
10:06:24 AM:       at Object.<anonymous> (/opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/templates/api/gatsbyFunction.js:10:24)
10:06:24 AM:       at Module._compile (node:internal/modules/cjs/loader:1165:14)
10:06:24 AM:       at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
10:06:24 AM:       at Module.load (node:internal/modules/cjs/loader:1043:32)
10:06:24 AM:       at Function.Module._load (node:internal/modules/cjs/loader:878:12)
10:06:24 AM:       at Module.require (node:internal/modules/cjs/loader:1067:19)
10:06:24 AM: ​
10:06:24 AM:   Error properties
10:06:24 AM:   { code: 'MODULE_NOT_FOUND' }
10:06:24 AM: ​
10:06:24 AM:   Resolved config
10:06:24 AM:   build:
10:06:24 AM:     command: gatsby build
10:06:24 AM:     commandOrigin: config
10:06:24 AM:     environment:
10:06:24 AM:       - GATSBY_CLOUDINARY_URL
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_SMALL
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_SMALL_ROTATE
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_THUMBNAIL
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_THUMBNAIL_EMAIL
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_THUMBNAIL_ROTATE
10:06:24 AM:       - GATSBY_CLOUDINARY_URL_THUMBNAIL_ROTATE_EMAIL
10:06:24 AM:       - GATSBY_NETLIFY_MAILER_URL
10:06:24 AM:       - GATSBY_STRAPI_PATH
10:06:24 AM:       - GATSBY_SUMUP_TOKEN_URL
10:06:24 AM:       - GOOGLE_GTAG
10:06:24 AM:       - NETLIFY_MAILER_HOST
10:06:24 AM:       - NETLIFY_MAILER_PWD
10:06:24 AM:       - NETLIFY_MAILER_USER_BCC
10:06:24 AM:       - NETLIFY_MAILER_USER_ID
10:06:24 AM:       - SUMUP_CHECKOUT_URL
10:06:24 AM:       - SUMUP_CLIENT_ID
10:06:24 AM:       - SUMUP_CLIENT_SECRET
10:06:24 AM:       - SUMUP_MERCHANT_CODE
10:06:24 AM:       - SUMUP_TOKEN_URL
10:06:24 AM:     publish: /opt/build/repo/public
10:06:24 AM:     publishOrigin: config
10:06:24 AM:   functionsDirectory: /opt/build/repo/functions
10:06:24 AM:   plugins:
10:06:24 AM:     - inputs: {}
10:06:24 AM:       package: '@netlify/plugin-gatsby'
10:06:24 AM: Caching artifacts
10:06:24 AM: Started saving node modules
10:06:24 AM: Finished saving node modules
10:06:24 AM: Started saving build plugins
10:06:24 AM: Finished saving build plugins
10:06:24 AM: Started saving pip cache
10:06:24 AM: Finished saving pip cache
10:06:24 AM: Started saving emacs cask dependencies
10:06:24 AM: Finished saving emacs cask dependencies
10:06:24 AM: Started saving maven dependencies
10:06:24 AM: Finished saving maven dependencies
10:06:24 AM: Started saving boot dependencies
10:06:24 AM: Finished saving boot dependencies
10:06:24 AM: Started saving rust rustup cache
10:06:24 AM: Finished saving rust rustup cache
10:06:24 AM: Started saving go dependencies
10:06:24 AM: Finished saving go dependencies
10:06:24 AM: Build failed due to a plugin error: Build script returned non-zero exit code: 3
10:06:24 AM: Failing build: Failed to build site
10:06:24 AM: Finished processing build request in 40.341s

RESOLVED - [Bug]: Netlify Gatsby plugin causes build failures on Gatsby 2.x site · Issue #556 · netlify/netlify-plugin-gatsby · GitHub
I just installed @gatsbyjs/reach-router