Netlify cached build with gatsby-plugin-offline gives enonet error: no such file or directory, open '/opt/build/repo/public/offline-plugin-app-shell-fallback/index.html'

Basic details
Netlify site name - frosty-gates-86bba8
Custom domain - www.ecocount.in
Tried to ask netlify AI and used the search option provided by netlify forums

Main problem is the build
When a cached build is started by netlify it is unable to find a file that’s created by gatsby-plugin-offline. Pasting a quick log here
UNHANDLED REJECTION ENOENT: no such file or directory, open ‘/opt/build/repo/public/offline-plugin-app-shell-fallback/index.html’

Full build log is below

5:00:29 PM: build-image version: 006dca901dab83234b4881f914ac1a189ff41daa (focal)
5:00:29 PM: buildbot version: ba5c763d1f34f61d009a9e958498a15d04740453
5:00:29 PM: Fetching cached dependencies
5:00:29 PM: Starting to download cache of 268.6MB
5:00:31 PM: Finished downloading cache in 1.366s
5:00:31 PM: Starting to extract cache
5:00:35 PM: Finished extracting cache in 4.068s
5:00:35 PM: Finished fetching cache in 5.49s
5:00:35 PM: Starting to prepare the repo for build
5:00:35 PM: Preparing Git Reference refs/heads/master
5:00:37 PM: Starting to install dependencies
5:00:37 PM: Python version set to 3.8
5:00:37 PM: Attempting Ruby version 2.7.2, read from environment
5:00:38 PM: Using Ruby version 2.7.2
5:00:38 PM: Started restoring cached go cache
5:00:38 PM: Finished restoring cached go cache
5:00:38 PM: Installing Go version 1.16.5 (requested 1.16.5)
5:00:42 PM: go version go1.16.5 linux/amd64
5:00:43 PM: Using PHP version 8.0
5:00:44 PM: Started restoring cached Node.js version
5:00:45 PM: Finished restoring cached Node.js version
5:00:46 PM: v20.15.1 is already installed.
5:00:46 PM: Now using node v20.15.1 (npm v10.7.0)
5:00:46 PM: Enabling Node.js Corepack
5:00:46 PM: Started restoring cached build plugins
5:00:46 PM: Finished restoring cached build plugins
5:00:46 PM: Started restoring cached corepack dependencies
5:00:46 PM: Finished restoring cached corepack dependencies
5:00:46 PM: No npm workspaces detected
5:00:46 PM: Started restoring cached node modules
5:00:46 PM: Finished restoring cached node modules
5:00:46 PM: Installing npm packages using npm version 10.7.0
5:00:48 PM: npm warn ERESOLVE overriding peer dependency
5:00:48 PM: npm warn While resolving: react-server-dom-webpack0.0.0-experimental-c8b778b7f-20220825
5:00:48 PM: npm warn Found: react18.3.1
5:00:48 PM: npm warn node_modules/react
5:00:48 PM: npm warn react"^18.3.1" from the root project
5:00:48 PM: npm warn 24 more (apollo/client, emotion/react, …)
5:00:48 PM: npm warn
5:00:48 PM: npm warn Could not resolve dependency:
5:00:48 PM: npm warn peer react"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack0.0.0-experimental-c8b778b7f-20220825
5:00:48 PM: npm warn node_modules/react-server-dom-webpack
5:00:48 PM: npm warn react-server-dom-webpack"0.0.0-experimental-c8b778b7f-20220825" from gatsby5.13.6
5:00:48 PM: npm warn node_modules/gatsby
5:00:48 PM: npm warn
5:00:48 PM: npm warn Conflicting peer dependency: react0.0.0-experimental-c8b778b7f-20220825
5:00:48 PM: npm warn node_modules/react
5:00:48 PM: npm warn peer react"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack0.0.0-experimental-c8b778b7f-20220825
5:00:48 PM: npm warn node_modules/react-server-dom-webpack
5:00:48 PM: npm warn react-server-dom-webpack"0.0.0-experimental-c8b778b7f-20220825" from gatsby5.13.6
5:00:48 PM: npm warn node_modules/gatsby
5:00:52 PM: up to date, audited 1705 packages in 6s
5:00:52 PM: 289 packages are looking for funding
5:00:52 PM: run npm fund for details
5:00:52 PM: 30 vulnerabilities (19 moderate, 6 high, 5 critical)
5:00:52 PM: To address issues that do not require attention, run:
5:00:52 PM: npm audit fix
5:00:52 PM: To address all issues possible (including breaking changes), run:
5:00:52 PM: npm audit fix --force
5:00:52 PM: Some issues need review, and may require choosing
5:00:52 PM: a different dependency.
5:00:52 PM: Run npm audit for details.
5:00:52 PM: npm packages installed
5:00:52 PM: Successfully installed dependencies
5:00:52 PM: Starting build script
5:00:53 PM: Detected 1 framework(s)
5:00:53 PM: “gatsby” at version “5.13.6”
5:00:53 PM: Section completed: initializing
5:00:55 PM: ​
5:00:55 PM: Netlify Build
5:00:55 PM: ────────────────────────────────────────────────────────────────
5:00:55 PM: ​
5:00:55 PM: ❯ Version
5:00:55 PM: netlify/build 29.51.2
5:00:55 PM: ​
5:00:55 PM: ❯ Flags
5:00:55 PM: baseRelDir: true
5:00:55 PM: buildId: 669265494f8a5d000865705d
5:00:55 PM: deployId: 669265494f8a5d000865705f
5:00:55 PM: ​
5:00:55 PM: ❯ Current directory
5:00:55 PM: /opt/build/repo
5:00:55 PM: ​
5:00:55 PM: ❯ Config file
5:00:55 PM: No config file was defined: using default values.
5:00:55 PM: ​
5:00:55 PM: ❯ Context
5:00:55 PM: production
5:00:55 PM: ​
5:00:55 PM: ❯ Loading plugins
5:00:55 PM: - netlify/plugin-gatsby1.0.3 from Netlify app
5:00:55 PM: ​
5:00:55 PM: ❯ Outdated plugins
5:00:55 PM: - netlify/plugin-gatsby1.0.3: latest version is 3.8.1
5:00:55 PM: Migration guide: Release v2.0.0 · netlify/netlify-plugin-gatsby · GitHub
5:00:55 PM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (Netlify)
5:00:58 PM: Found a Gatsby cache. We’re about to go FAST. :zap:
5:00:58 PM: Add gatsby-plugin-netlify to gatsby-config.js if you would like to support Gatsby redirects. :tada:
5:00:58 PM: ​
5:00:58 PM: Build command from Netlify app
5:00:58 PM: ────────────────────────────────────────────────────────────────
5:00:58 PM: ​
5:00:58 PM: $ npm run build
5:00:58 PM: > sustainable-assistant–ui0.0.1 build
5:00:58 PM: > gatsby build
5:01:02 PM: success compile gatsby files - 1.996s
5:01:02 PM: success load gatsby config - 0.020s
5:01:02 PM: info Using gatsby-adapter-netlify adapter
5:01:04 PM: info [gatsby-adapter-netlify] Found a Gatsby cache. We’re about to go FAST. :zap:
test
5:01:04 PM: success load plugins - 0.495s
5:01:04 PM: warning ENV_PATH not specified. If the required environment variables are not specified, then the startup will fail
5:01:04 PM: success onPreInit - 0.003s
5:01:04 PM: success delete worker cache from previous builds - 0.001s
5:01:05 PM: success initialize cache - 0.027s
5:01:05 PM: success copy gatsby files - 0.051s
5:01:05 PM: success Compiling Gatsby Functions - 0.282s
5:01:05 PM: success onPreBootstrap - 0.319s
5:01:05 PM: success createSchemaCustomization - 0.044s
5:01:05 PM: success Clean up stale nodes - 0.010s - 19/0 0.00/s
5:01:05 PM: success Checking for changed pages - 0.000s
5:01:05 PM: success source and transform nodes - 0.325s
5:01:06 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
5:01:06 PM: success building schema - 0.584s
5:01:06 PM: success createPages - 0.006s
5:01:06 PM: success createPagesStatefully - 0.494s
5:01:06 PM: info Total nodes: 57, SitePage nodes: 13 (use --verbose for breakdown)
5:01:07 PM: success Checking for changed pages - 0.000s
5:01:07 PM: success Cleaning up stale page-data - 0.002s
5:01:07 PM: success onPreExtractQueries - 0.000s
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:14 PM: test
5:01:17 PM: success extract queries from components - 10.413s
5:01:17 PM: success write out redirect data - 0.003s
5:01:18 PM: success Build manifest and related icons - 0.688s
5:01:18 PM: success onPostBootstrap - 0.689s
5:01:18 PM: info bootstrap finished - 19.327s
5:01:18 PM: Creating an optimized production build for basic-polyfill.js …
5:01:18 PM: Creating an optimized production build for resize-observer-polyfill.js …
5:01:18 PM: Creating an optimized production build for intersection-observer-polyfill.js …
5:01:18 PM: Compiled successfully.
5:01:18 PM: Build for intersection-observer-polyfill.js completed and created at: /opt/build/repo/public
5:01:18 PM: success write out requires - 0.003s
5:01:18 PM: info [gatsby-plugin-perf-budgets] hooking into webpack
5:01:18 PM: Compiled successfully.
5:01:18 PM: Build for resize-observer-polyfill.js completed and created at: /opt/build/repo/public
5:01:19 PM: Compiled successfully.
5:01:19 PM: Build for basic-polyfill.js completed and created at: /opt/build/repo/public
5:01:23 PM: Webpack Bundle Analyzer is started at http://127.0.0.1:3001
5:01:23 PM: Use Ctrl+C to close it
5:01:23 PM: success Building production JavaScript and CSS bundles - 4.838s
5:01:26 PM: success Building HTML renderer - 2.432s
5:01:26 PM: success Execute page configs - 0.078s
5:01:26 PM: success Caching Webpack compilations - 0.000s
5:01:26 PM: success run queries in workers - 0.002s - 0/0 0.00/s
5:01:26 PM: success Merge worker state - 0.002s
5:01:26 PM: success Rewriting compilation hashes - 0.000s
5:01:34 PM: success Building static HTML for pages - 6.262s - 10/10 1.60/s
5:01:34 PM: info There are no new or changed slice html files to build.
5:01:34 PM: error UNHANDLED REJECTION ENOENT: no such file or directory, open ‘/opt/build/repo/public/offline-plugin-app-shell-fallback/index.html’
5:01:34 PM:
5:01:34 PM:
5:01:34 PM: Error: ENOENT: no such file or directory, open ‘/opt/build/repo/public/offline -plugin-app-shell-fallback/index.html’
5:01:34 PM:
5:01:34 PM: not finished stitching slices - 0.010s
5:01:34 PM: ​
5:01:34 PM: “build.command” failed
5:01:34 PM: ────────────────────────────────────────────────────────────────
5:01:34 PM: ​
5:01:34 PM: Error message
5:01:34 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
5:01:34 PM: ​
5:01:34 PM: Error location
5:01:34 PM: In Build command from Netlify app:
5:01:34 PM: npm run build
5:01:34 PM: ​
5:01:34 PM: Resolved config
5:01:34 PM: build:
5:01:34 PM: command: npm run build
5:01:34 PM: commandOrigin: ui
5:01:34 PM: environment:
5:01:34 PM: - AUTH_PUBLIC_KEY_KEY
5:01:34 PM: - AUTH_TOKEN_TIMEOUT_KEY
5:01:34 PM: - FACEBOOK_CLIENT_ID_KEY
5:01:34 PM: - GOOGLE_CLIENT_ID_KEY
5:01:34 PM: - GRAPH_QL_URI_KEY
5:01:34 PM: - NODE_VERSION
5:01:34 PM: publish: /opt/build/repo/public
5:01:34 PM: publishOrigin: ui
5:01:34 PM: headers:
5:01:35 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
5:01:35 PM: - for: /*
values:
cache-control: public, max-age=0, must-revalidate
referrer-policy: same-origin
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 1; mode=block
- for: /static/*
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-app-tsx-69c0b12a8043ddf46741.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-app-tsx-69c0b12a8043ddf46741.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-app-tsx-69c0b12a8043ddf46741.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-app-tsx.1e4a11627dc8efab9d2f.css
values:
cache-control: public, max-age=31536000, immutable
- for: /app-1011af783275f011a499.js
values:
cache-control: public, max-age=31536000, immutable
- for: /app-1011af783275f011a499.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /app-1011af783275f011a499.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /2944a27bebf880984cb1be5604fd6a2c084b9d56-c182b1c4ce4cea2bb909.js
values:
cache-control: public, max-age=31536000, immutable
- for: /2944a27bebf880984cb1be5604fd6a2c084b9d56-c182b1c4ce4cea2bb909.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-update-pick-%5Bid%5D-tsx.1a05b2a7ecfd09341dac.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-user-task-add-task-tsx.8fda2996e720ed732e2d.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-details-%5Bid%5D-tsx.08fbebcfa73b97bf5437.css
values:
cache-control: public, max-age=31536000, immutable
- for: /3c1aad277bb90e9493bafcfe038fb03fdedb7c47-d3f02c4a5c6f3023a8bf.js
values:
cache-control: public, max-age=31536000, immutable
- for: /3c1aad277bb90e9493bafcfe038fb03fdedb7c47-d3f02c4a5c6f3023a8bf.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /3c1aad277bb90e9493bafcfe038fb03fdedb7c47-d3f02c4a5c6f3023a8bf.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-tsx.fdac3b70700d533998b9.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-login-tsx.4244ca706fcbdd86dde8.css
values:
cache-control: public, max-age=31536000, immutable
- for: /framework-1ab754de99c9afb00af0.js
values:
cache-control: public, max-age=31536000, immutable
- for: /framework-1ab754de99c9afb00af0.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /framework-1ab754de99c9afb00af0.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-index-tsx.18a11f62766bc22f7fa5.css
values:
cache-control: public, max-age=31536000, immutable
- for: /105.9eae59cb163fe9294ae8.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-careers-tsx.92072a1ae85b9e1be40f.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-company-info-tsx.47b5046659e2c29bde8a.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-privacy-policy-tsx.3ac75bb6f58e959523c4.css
values:
cache-control: public, max-age=31536000, immutable
- for: /727-8fa101c7952c56ae9c41.js
values:
cache-control: public, max-age=31536000, immutable
- for: /727-8fa101c7952c56ae9c41.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /727-8fa101c7952c56ae9c41.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /2cd6e98347d4b1a3099a8942935d1b1703703f42-c8ae6298d715c37b15d0.js
values:
cache-control: public, max-age=31536000, immutable
- for: /2cd6e98347d4b1a3099a8942935d1b1703703f42-c8ae6298d715c37b15d0.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /75fc9c18-77c991be9734d43e42cc.js
values:
cache-control: public, max-age=31536000, immutable
- for: /75fc9c18-77c991be9734d43e42cc.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /75fc9c18-77c991be9734d43e42cc.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /styles.872adae32257a52cfd90.css
values:
cache-control: public, max-age=31536000, immutable
- for: /779.c6dad9f1335310abb570.css
values:
cache-control: public, max-age=31536000, immutable
- for: /37ebd1c7207888d3475c128120051e6084f64067-babf1088278b8f58a18a.js
values:
cache-control: public, max-age=31536000, immutable
- for: /37ebd1c7207888d3475c128120051e6084f64067-babf1088278b8f58a18a.js.LICENSE.txt
values:
cache-control: public, max-age=31536000, immutable
- for: /37ebd1c7207888d3475c128120051e6084f64067-babf1088278b8f58a18a.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /913.c5b503d042db9036d9ea.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-tsx-6e5d9f96429e9d71b6ef.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-tsx-6e5d9f96429e9d71b6ef.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /0ffa58498d2db1d9fd58a90b2e962fd5c6b7a76a-9d543e1e1d3825229167.js
values:
cache-control: public, max-age=31536000, immutable
- for: /0ffa58498d2db1d9fd58a90b2e962fd5c6b7a76a-9d543e1e1d3825229167.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /02cf3119a1a06750e02c6320a7ffd6d125391e4a-cde9acb8822e744f94d0.js
values:
cache-control: public, max-age=31536000, immutable
- for: /02cf3119a1a06750e02c6320a7ffd6d125391e4a-cde9acb8822e744f94d0.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /3e591be5747bb06e8574bfefea37ca1ce890a31d-78b531cff45bb9f0e354.js
values:
cache-control: public, max-age=31536000, immutable
- for: /3e591be5747bb06e8574bfefea37ca1ce890a31d-78b531cff45bb9f0e354.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /978.ed919e0937a9fca66daf.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-details-%5Bid%5D-tsx-76e1a91566d356cfc6aa.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-details-%5Bid%5D-tsx-76e1a91566d356cfc6aa.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /0643f2995cbd3f017cbaa8a865bf516f1f543685-71012541029e5160173a.js
values:
cache-control: public, max-age=31536000, immutable
- for: /0643f2995cbd3f017cbaa8a865bf516f1f543685-71012541029e5160173a.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-index-tsx-68083b539db3cba68356.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-index-tsx-68083b539db3cba68356.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /913-3e09dec3072acd83dd94.js
values:
cache-control: public, max-age=31536000, immutable
- for: /913-3e09dec3072acd83dd94.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /61ed6e446f88cfcf526aba2713edde485da6dd9f-337cfc16ec84ca17fd79.js
values:
cache-control: public, max-age=31536000, immutable
- for: /61ed6e446f88cfcf526aba2713edde485da6dd9f-337cfc16ec84ca17fd79.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /978-7e7e6ec57b92f8dfbd43.js
values:
cache-control: public, max-age=31536000, immutable
- for: /978-7e7e6ec57b92f8dfbd43.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /062197d54c093ff63e2c08279096dd5e2d87a566-4e23ab2892697eaec9da.js
values:
cache-control: public, max-age=31536000, immutable
- for: /062197d54c093ff63e2c08279096dd5e2d87a566-4e23ab2892697eaec9da.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-update-pick-%5Bid%5D-tsx-38743fc71d961f1039af.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-community-task-update-pick-%5Bid%5D-tsx-38743fc71d961f1039af.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /styles-594b8f1e3af2187ed40b.js
values:
cache-control: public, max-age=31536000, immutable
- for: /styles-594b8f1e3af2187ed40b.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /779-e379f1050c709f4c96ae.js
values:
cache-control: public, max-age=31536000, immutable
- for: /779-e379f1050c709f4c96ae.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /174-d7fe5c8baff25018699e.js
values:
cache-control: public, max-age=31536000, immutable
- for: /174-d7fe5c8baff25018699e.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-privacy-policy-tsx-504165d2598928005c0a.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-privacy-policy-tsx-504165d2598928005c0a.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /377-5938e5f79d4f1e79a698.js
values:
cache-control: public, max-age=31536000, immutable
- for: /377-5938e5f79d4f1e79a698.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /d2145edac4c5b6331843e61e61fc7a48d7038066-a1b7fca5f1671ec27a06.js
values:
cache-control: public, max-age=31536000, immutable
- for: /d2145edac4c5b6331843e61e61fc7a48d7038066-a1b7fca5f1671ec27a06.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /995.3ee22333557921e2b178.css
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-careers-tsx-e079d3026cd83fc6031f.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-careers-tsx-e079d3026cd83fc6031f.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-company-info-tsx-0107b2bcf8cefc8003db.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-company-info-tsx-0107b2bcf8cefc8003db.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /webpack-runtime-0bcd98d103fd4e1fdd01.js
values:
cache-control: public, max-age=31536000, immutable
- for: /webpack-runtime-0bcd98d103fd4e1fdd01.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-user-task-add-task-tsx-cce1abad2b5f4d82eba4.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-user-task-add-task-tsx-cce1abad2b5f4d82eba4.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /0342bca77f99401955314b0a3eb0aee6596ae96c-f5cfd2bf90e8bfc2cbb2.js
values:
cache-control: public, max-age=31536000, immutable
- for: /0342bca77f99401955314b0a3eb0aee6596ae96c-f5cfd2bf90e8bfc2cbb2.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-login-tsx-afbbd63289cc9bc4380d.js
values:
cache-control: public, max-age=31536000, immutable
- for: /component—src-pages-login-tsx-afbbd63289cc9bc4380d.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /995-7711552c472cfe7bdd88.js
values:
cache-control: public, max-age=31536000, immutable
- for: /995-7711552c472cfe7bdd88.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /794-5c207756719cf0051ae1.js
values:
cache-control: public, max-age=31536000, immutable
- for: /794-5c207756719cf0051ae1.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /29-5dcf536da3d1f4e23134.js
values:
cache-control: public, max-age=31536000, immutable
- for: /29-5dcf536da3d1f4e23134.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /105-a22f921322528bd65d0c.js
values:
cache-control: public, max-age=31536000, immutable
- for: /105-a22f921322528bd65d0c.js.map
values:
cache-control: public, max-age=31536000, immutable
- for: /26-663a99fa99c5cd67c18a.js
values:
cache-control: public, max-age=31536000, immutable
plugins:
- inputs: {}
origin: ui
package: ‘netlify/plugin-gatsby’
redirects:
- from: /offline-plugin-app-shell-fallback/index.html
status: 200
to: /offline-plugin-app-shell-fallback
- from: /page-data/community-task/details/:id/page-data.json
status: 200
to: /page-data/community-task/details/[id]/page-data.json
- from: /page-data/community-task/update-pick/:id/page-data.json
status: 200
to: /page-data/community-task/update-pick/[id]/page-data.json
- from: /community-task/details/:id
status: 200
to: /community-task/details/[id].html
- from: /community-task/update-pick/:id
status: 200
to: /community-task/update-pick/[id].html
- from: /page-data/app/*
status: 200
to: /page-data/app/[…]
- from: /app/*
status: 200
to: /app/[…].html
- from: /api/*
status: 200
to: /.netlify/functions/gatsby
5:01:35 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:01:35 PM: Failing build: Failed to build site
5:01:36 PM: Finished processing build request in 1m6.407s

Did you try upgrading the plugin as the logs ask you to?

Hi,

Are you talking about the following lines in the log?

5:00:55 PM: ❯ Loading plugins
5:00:55 PM: - netlify/plugin-gatsby1.0.3 from Netlify app
5:00:55 PM: ​
5:00:55 PM: ❯ Outdated plugins
5:00:55 PM: - netlify/plugin-gatsby1.0.3: latest version is 3.8.1

I don’t have this package in either my package.json or in my package-lock.json. This seems to be added by netlify itself and the Netlify App link mentioned in the logs takes me to the integrations section and I can’t find this plugin.

Can you please guide me if I have misunderstood something?

Can you share your repo? Perhaps you’ve installed the package without realising?

Hi @SamO,

I’m positive I’ve not added any package by myself. However, I’ll add you to my repo if you can provide me your github username?
PS: For now I’ve removed the gatsby-plugin-offline package from my repo. You’ll find it commented in the gatsby-config.js file

Thanks for following up and confirming! You’re correct that the Gatsby runtime installsnetlify/plugin-gatsby by default - I’ve just tried manually changing the pinned plugin version for your site, can you redeploy and let us know if you’re still seeing the same error with either the essential Gatsby plugin or gatsby-plugin-offline?

For the sitemap plugin errors, it looks like the issues potentially started with this deploy (there are deploys that use cache previous to this one that don’t hit this same error). Can you let us know if there were any other changes made around then?

It’s also worth noting that to properly uninstall gatsby-plugin-offline, you’d want to use gatsby-plugin-remove-service-worker. Thanks again!