Build Failure with Gatsby

My site is tire.netlify.app
My build fails, it seems like a homegrown issue, locally with Node V18.1 ntl dev works:

Should I look at the module yurnalist for the error?
Error: Cannot find module ‘./util.js’
9:55:42 PM: Require stack:
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/index.js


build log:
9:53:41 PM: build-image version: d55944c047ef0aee2ac01971edde72cb2a50acfe (focal)
9:53:41 PM: build-image tag: v4.16.1
9:53:41 PM: buildbot version: a1ec8307ac4591dcd155485cdfce7d7be735ab26
9:53:41 PM: Fetching cached dependencies
9:53:41 PM: Failed to fetch cache, continuing with build
9:53:41 PM: Starting to prepare the repo for build
9:53:41 PM: No cached dependencies found. Cloning fresh repo
9:53:41 PM: git clone --filter=blob:none GitHub - tik9/re: My public repos and Stackoverflow posts
9:53:41 PM: Preparing Git Reference refs/heads/master
9:53:42 PM: Parsing package.json dependencies
9:53:43 PM: Starting build script
9:53:43 PM: Installing dependencies
9:53:43 PM: Python version set to 2.7
9:53:43 PM: Attempting node version ‘v18’ from .nvmrc
9:53:43 PM: Downloading and installing node v18.13.0…
9:53:43 PM: Downloading https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz
9:53:44 PM: Computing checksum with sha256sum
9:53:44 PM: Checksums matched!
9:53:46 PM: Now using node v18.13.0 (npm v8.19.3)
9:53:46 PM: Enabling node corepack
9:53:46 PM: Started restoring cached build plugins
9:53:46 PM: Finished restoring cached build plugins
9:53:46 PM: Attempting ruby version 2.7.2, read from environment
9:53:46 PM: Using ruby version 2.7.2
9:53:47 PM: Using PHP version 8.0
9:53:47 PM: No npm workspaces detected
9:53:47 PM: Started restoring cached node modules
9:53:47 PM: Finished restoring cached node modules
9:53:47 PM: Installing NPM modules using NPM version 8.19.3
9:54:10 PM: npm WARN ERESOLVE overriding peer dependency
9:54:10 PM: npm WARN While resolving: react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
9:54:10 PM: npm WARN Found: react@18.2.0
9:54:10 PM: npm WARN node_modules/react
9:54:10 PM: npm WARN react@“^18.2.0” from the root project
9:54:10 PM: npm WARN 7 more (gatsby, react-dom, gatsby-plugin-image, …)
9:54:10 PM: npm WARN
9:54:10 PM: npm WARN Could not resolve dependency:
9:54:10 PM: npm WARN peer react@“0.0.0-experimental-c8b778b7f-20220825” from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
9:54:10 PM: npm WARN node_modules/react-server-dom-webpack
9:54:10 PM: npm WARN react-server-dom-webpack@“0.0.0-experimental-c8b778b7f-20220825” from gatsby@5.3.3
9:54:10 PM: npm WARN node_modules/gatsby
9:54:10 PM: npm WARN
9:54:10 PM: npm WARN Conflicting peer dependency: react@0.0.0-experimental-c8b778b7f-20220825
9:54:10 PM: npm WARN node_modules/react
9:54:10 PM: npm WARN peer react@“0.0.0-experimental-c8b778b7f-20220825” from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
9:54:10 PM: npm WARN node_modules/react-server-dom-webpack
9:54:10 PM: npm WARN react-server-dom-webpack@“0.0.0-experimental-c8b778b7f-20220825” from gatsby@5.3.3
9:54:10 PM: npm WARN node_modules/gatsby
9:54:19 PM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: Array.prototype.sort() - JavaScript | MDN
9:54:19 PM: npm WARN deprecated async-cache@1.1.0: No longer maintained. Use lru-cache version 7.6 or higher, and provide an asynchronous fetchMethod option.
9:54:24 PM: npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
9:54:25 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
9:54:38 PM: added 1546 packages, and audited 1547 packages in 51s
9:54:38 PM: 304 packages are looking for funding
9:54:38 PM: run npm fund for details
9:54:38 PM: 19 vulnerabilities (1 low, 13 moderate, 1 high, 4 critical)
9:54:38 PM: To address issues that do not require attention, run:
9:54:38 PM: npm audit fix
9:54:38 PM: To address all issues possible (including breaking changes), run:
9:54:38 PM: npm audit fix --force
9:54:38 PM: Some issues need review, and may require choosing
9:54:38 PM: a different dependency.
9:54:38 PM: Run npm audit for details.
9:54:38 PM: NPM modules installed
9:54:38 PM: Creating package sha
9:54:38 PM: Started restoring cached go cache
9:54:38 PM: Finished restoring cached go cache
9:54:39 PM: go version go1.19.4 linux/amd64
9:54:39 PM: Detected 1 framework(s)
9:54:39 PM: “gatsby” at version “5.3.3”
9:54:39 PM: Installing missing commands
9:54:39 PM: Verify run directory
9:54:39 PM: Section completed: initializing
9:54:41 PM: ​
9:54:41 PM: Netlify Build
9:54:41 PM: ────────────────────────────────────────────────────────────────
9:54:41 PM: ​
9:54:41 PM: ❯ Version
9:54:41 PM: @netlify/build 29.4.0
9:54:41 PM: ​
9:54:41 PM: ❯ Flags
9:54:41 PM: baseRelDir: true
9:54:41 PM: buildId: 63bb2d5342bbfe5aa491a315
9:54:41 PM: deployId: 63bb2d5342bbfe5aa491a317
9:54:41 PM: ​
9:54:41 PM: ❯ Current directory
9:54:41 PM: /opt/build/repo
9:54:41 PM: ​
9:54:41 PM: ❯ Config file
9:54:41 PM: No config file was defined: using default values.
9:54:41 PM: ​
9:54:41 PM: ❯ Context
9:54:41 PM: production
9:54:41 PM: ​
9:54:41 PM: ❯ Installing plugins
9:54:41 PM: - @netlify/plugin-gatsby@3.4.8
9:54:48 PM: ​
9:54:48 PM: ❯ Loading plugins
9:54:48 PM: - @netlify/plugin-gatsby@3.4.8 from Netlify app
9:54:49 PM: ​
9:54:49 PM: 1. @netlify/plugin-gatsby (onPreBuild event)
9:54:49 PM: ────────────────────────────────────────────────────────────────
9:54:49 PM: ​
9:54:49 PM: No Gatsby cache found. Building fresh.
9:54:49 PM: Please install gatsby-plugin-netlify and enable it in your gatsby-config.js. gatsby-plugin-netlify | Gatsby
9:54:49 PM: ​
9:54:49 PM: (@netlify/plugin-gatsby onPreBuild completed in 8ms)
9:54:49 PM: ​
9:54:49 PM: 2. Build command from Netlify app
9:54:49 PM: ────────────────────────────────────────────────────────────────
9:54:49 PM: ​
9:54:49 PM: $ npm run build
9:54:50 PM: > build
9:54:50 PM: > gatsby build
9:54:52 PM: success compile gatsby files - 0.768s
9:54:52 PM: success load gatsby config - 0.031s
9:54:52 PM: success load plugins - 0.461s
9:54:52 PM: success onPreInit - 0.004s
9:54:52 PM: success initialize cache - 0.043s
9:54:52 PM: success copy gatsby files - 0.066s
9:54:53 PM: success Compiling Gatsby Functions - 0.163s
9:54:53 PM: success onPreBootstrap - 0.171s
9:54:53 PM: success createSchemaCustomization - 0.088s
9:54:54 PM: success Checking for changed pages - 0.000s
9:54:54 PM: success source and transform nodes - 1.198s
9:54:55 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
9:54:56 PM: success building schema - 1.212s
9:54:56 PM: success createPages - 0.002s
9:54:56 PM: success createPagesStatefully - 0.604s
9:54:56 PM: info Total nodes: 62, SitePage nodes: 12 (use --verbose for breakdown)
9:54:56 PM: success Checking for changed pages - 0.000s
9:54:56 PM: success onPreExtractQueries - 0.000s
9:55:01 PM: success extract queries from components - 4.723s
9:55:01 PM: success write out redirect data - 0.001s
9:55:01 PM: success Build manifest and related icons - 0.315s
9:55:01 PM: success onPostBootstrap - 0.317s
9:55:01 PM: info bootstrap finished - 11.680s
9:55:01 PM: success write out requires - 0.082s
9:55:09 PM: success Building production JavaScript and CSS bundles - 7.517s
9:55:26 PM: success Building Rendering Engines - 17.108s
9:55:32 PM: success Building HTML renderer - 5.998s
9:55:32 PM: success Execute page configs - 0.037s
9:55:33 PM: success Validating Rendering Engines - 1.131s
9:55:33 PM: success Caching Webpack compilations - 0.000s
9:55:33 PM: success run queries in workers - 0.065s - 14/14 216.57/s
9:55:33 PM: success Merge worker state - 0.003s
9:55:33 PM: success Rewriting compilation hashes - 0.000s
9:55:33 PM: success Writing page-data.json and slice-data.json files to public directory - 0.009s - 11/12 1331.34/s
9:55:41 PM: error Truncated page data information for the failed page “/404/”: {
9:55:41 PM: “errors”: {},
9:55:41 PM: “path”: “/404/”,
9:55:41 PM: “slicesMap”: {},
9:55:41 PM: “pageContext”: {}
9:55:41 PM: }
9:55:41 PM: failed Building static HTML for pages - 5.199s
9:55:41 PM: error Building static HTML failed for path “/404/”
9:55:41 PM:
9:55:41 PM: 75 | h;b.blockedSegment=n;try{if(Yc(a,b,d),n.lastPushedText&&n.textEmbedded&&n.chunks.push(za),n.status=1,Zc(h,n),0===h.pendingTasks)break a}catch(p){n.status=4,h.forceClientRender=!0,h.errorDigest=Y(a,p)}finally{b.blockedBoundary=c,b.blockedSegment=f}b=Rc(a,e,c,m,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if(“object”===typeof c&&null!==c)switch(c.$$typeof){case Xb:d=Uc(a,b,c.render,d,f);if(0!==U){c=b.treeContext;b.treeContext=rc(c,1,0);try{Z(a,b,d)}finally{b.treeContext=c}}else Z(a,
9:55:41 PM: 76 | b,d);return;case $b:c=c.type;d=Wc(c,d);Xc(a,b,c,d,f);return;case Vb:f=d.children;c=c._context;d=d.value;e=c._currentValue;c._currentValue=d;g=P;P=d={parent:g,depth:null===g?0:g.depth+1,context:c,parentValue:e,value:d};b.context=d;Z(a,b,f);a=P;if(null===a)throw Error(“Tried to pop a Context at the root of the app. This is a bug in React.”);d=a.parentValue;a.context._currentValue=d===ec?a.context._defaultValue:d;a=P=a.parent;b.context=a;return;case Wb:d=d.children;d=d(c._currentValue);Z(a,b,d);return;
9:55:41 PM: > 77 | case ac:f=c._init;c=f(c._payload);d=Wc(c,d);Xc(a,b,c,d,void 0);return}throw Error(“Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: “+((null==c?c:typeof c)+”.”));}}
9:55:41 PM: | ^
9:55:41 PM: 78 | function Z(a,b,c){b.node=c;if(“object”===typeof c&&null!==c){switch(c.$$typeof){case Qb:Xc(a,b,c.type,c.props,c.ref);return;case Rb:throw Error(“Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.”);case ac:var d=c._init;c=d(c._payload);Z(a,b,c);return}if(qa(c)){$c(a,b,c);return}null===c||“object”!==typeof c?d=null:(d=fc&&c[fc]||c[“@@iterator”],d=“function”===typeof d?d:null);if(d&&(d=d.call(c))){c=d.next();if(!c.done){var f=
9:55:41 PM: 79 | ;do f.push(c.value),c=d.next();while(!c.done);$c(a,b,f)}return}a=Object.prototype.toString.call(c);throw Error(“Objects are not valid as a React child (found: “+(”[object Object]”===a?“object with keys {”+Object.keys(c).join(“, “)+”}”:a)+“). If you meant to render a collection of children, use an array instead.”);}“string”===typeof c?(d=b.blockedSegment,d.lastPushedText=Aa(b.blockedSegment.chunks,c,a.responseState,d.lastPushedText)):“number”===typeof c&&(d=b.blockedSegment,d.lastPushedText=Aa(b.blockedSegment.chunks,
9:55:41 PM: 80 | “”+c,a.responseState,d.lastPushedText))}function $c(a,b,c){for(var d=c.length,f=0;f<d;f++){var e=b.treeContext;b.treeContext=rc(e,d,f);try{Yc(a,b,c[f])}finally{b.treeContext=e}}}
9:55:41 PM:
9:55:41 PM: WebpackError: Element type is invalid: expected a string (for built-in compone nts) or a class/function (for composite components) but got: object.
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:77
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:77:71
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:72
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:72:476
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:70
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:70:468
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:72
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:72:210
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:81
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:81:91
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:73
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:73:145
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:72
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:72:476
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:43 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)
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:72
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:72:476
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:76
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:76:231
9:55:41 PM:
9:55:41 PM: - react-dom-server.node.production.min.js:78
9:55:41 PM: [rep]/[react-dom]/cjs/react-dom-server.node.production.min.js:78:81
9:55:41 PM:
9:55:41 PM:
9:55:42 PM: ​
9:55:42 PM: “build.command” failed
9:55:42 PM: ────────────────────────────────────────────────────────────────
9:55:42 PM: ​
9:55:42 PM: Error message
9:55:42 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
9:55:42 PM: ​
9:55:42 PM: Error location
9:55:42 PM: In Build command from Netlify app:
9:55:42 PM: npm run build
9:55:42 PM: ​
9:55:42 PM: Resolved config
9:55:42 PM: build:
9:55:42 PM: command: npm run build
9:55:42 PM: commandOrigin: ui
9:55:42 PM: environment:
9:55:42 PM: - ghtoken
9:55:42 PM: publish: /opt/build/repo/public
9:55:42 PM: publishOrigin: ui
9:55:42 PM: plugins:
9:55:42 PM: - inputs: {}
9:55:42 PM: origin: ui
9:55:42 PM: package: ‘@netlify/plugin-gatsby’
9:55:42 PM: Caching artifacts
9:55:42 PM: Started saving node modules
9:55:42 PM: Finished saving node modules
9:55:42 PM: Started saving build plugins
9:55:42 PM: Finished saving build plugins
9:55:42 PM: Started saving pip cache
9:55:42 PM: node:internal/modules/cjs/loader:1042
9:55:42 PM: throw err;
9:55:42 PM: ^
9:55:42 PM: Error: Cannot find module ‘./util.js’
9:55:42 PM: Require stack:
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/start-logger.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/resolvers.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/extensions/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/types/type-defs.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/inference-metadata.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
9:55:42 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
9:55:42 PM: at Function.Module._load (node:internal/modules/cjs/loader:885:27)
9:55:42 PM: at Module.require (node:internal/modules/cjs/loader:1105:19)
9:55:42 PM: at require (node:internal/modules/cjs/helpers:103:18)
9:55:42 PM: at _load_util (/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js:34:18)
9:55:42 PM: at ConsoleReporter.error (/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js:267:19)
9:55:42 PM: at /opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js:198:13
9:55:42 PM: at dispatch (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js:60:5)
9:55:42 PM: at Object.createLog (/opt/build/repo/node_modules/redux/lib/redux.js:554:12)
9:55:42 PM: at Reporter.error (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js:184:23)
9:55:42 PM: at console.error (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/patch-console.js:31:14)
9:55:42 PM: at printErrorAndExit (/opt/build/repo/node_modules/@turist/fetch/dist/sourcemap-register.js:1:7058)
9:55:42 PM: at process.emit (/opt/build/repo/node_modules/@turist/fetch/dist/sourcemap-register.js:1:7292)
9:55:42 PM: at process._fatalException (node:internal/process/execution:149:25) {
9:55:42 PM: code: ‘MODULE_NOT_FOUND’,
9:55:42 PM: requireStack: [
9:55:42 PM: ‘/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/yurnalist/dist/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/start-logger.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/resolvers.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/extensions/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/types/type-defs.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/inference-metadata.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-worker/dist/child.js’
9:55:42 PM: ]
9:55:42 PM: }
9:55:42 PM: Node.js v18.13.0
9:55:42 PM: Finished saving pip cache
9:55:42 PM: Started saving emacs cask dependencies
9:55:42 PM: Finished saving emacs cask dependencies
9:55:42 PM: Started saving maven dependencies
9:55:42 PM: Finished saving maven dependencies
9:55:42 PM: Started saving boot dependencies
9:55:42 PM: node:internal/modules/cjs/loader:1042
9:55:42 PM: throw err;
9:55:42 PM: ^
9:55:42 PM: Error: Cannot find module ‘./util.js’
9:55:42 PM: Require stack:
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js
9:55:42 PM: - /opt/build/repo/node_modules/yurnalist/dist/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/start-logger.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-cli/lib/reporter/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/resolvers.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/extensions/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/schema/types/type-defs.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/inference-metadata.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/redux/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
9:55:42 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
9:55:42 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
9:55:42 PM: at Function.Module._load (node:internal/modules/cjs/loader:885:27)
9:55:42 PM: at Module.require (node:internal/modules/cjs/loader:1105:19)
9:55:42 PM: at require (node:internal/modules/cjs/helpers:103:18)
9:55:42 PM: at _load_util (/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js:34:18)
9:55:42 PM: at ConsoleReporter.error (/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js:267:19)
9:55:42 PM: at /opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js:198:13
9:55:42 PM: at dispatch (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/index.js:60:5)
9:55:42 PM: at Object.createLog (/opt/build/repo/node_modules/redux/lib/redux.js:554:12)
9:55:42 PM: at Reporter.error (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/reporter.js:184:23)
9:55:42 PM: at console.error (/opt/build/repo/node_modules/gatsby-cli/lib/reporter/patch-console.js:31:14)
9:55:42 PM: at printErrorAndExit (/opt/build/repo/node_modules/@turist/fetch/dist/sourcemap-register.js:1:7058)
9:55:42 PM: at process.emit (/opt/build/repo/node_modules/@turist/fetch/dist/sourcemap-register.js:1:7292)
9:55:42 PM: at process._fatalException (node:internal/process/execution:149:25) {
9:55:42 PM: code: ‘MODULE_NOT_FOUND’,
9:55:42 PM: requireStack: [
9:55:42 PM: ‘/opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/yurnalist/dist/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/start-logger.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-cli/lib/reporter/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/resolvers.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/extensions/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/schema/types/type-defs.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/inference-metadata.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/reducers/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/redux/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/jobs/worker-messaging.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js’,
9:55:42 PM: ‘/opt/build/repo/node_modules/gatsby-worker/dist/child.js’
9:55:42 PM: ]
9:55:42 PM: }
9:55:42 PM: Node.js v18.13.0
9:55:42 PM: Finished saving boot dependencies
9:55:42 PM: Started saving rust rustup cache
9:55:42 PM: Finished saving rust rustup cache
9:55:42 PM: Started saving go dependencies
9:55:42 PM: Finished saving go dependencies
9:55:43 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:55:43 PM: Failing build: Failed to build site
9:55:44 PM: Finished processing build request in 2m2.830122195s

The good one:
$ ntl dev

Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored site settings env var: ghtoken (defined in .env file)
◈ Injected .env file env var: ghtoken
◈ Setting up local development server

Netlify Build
────────────────────────────────────────────────────────────────

❯ Version
@netlify/build 29.2.2

❯ Flags
{}

❯ Current directory
/Users/thome/re

❯ Config file
No config file was defined: using default values.

❯ Context
dev

❯ Loading plugins

  • @netlify/plugin-gatsby@3.5.0 from Netlify app and package.json
  1. Run command for local development
    ────────────────────────────────────────────────────────────────

    Starting Netlify Dev with Gatsby

start
gatsby develop

success compile gatsby files - 0.206s
success load gatsby config - 0.014s
success load plugins - 0.354s
success onPreInit - 0.005s
info One or more of your plugins have changed since the last time you ran Gatsby. As
a precaution, we’re deleting your site’s cache to ensure there’s no stale data.
success initialize cache - 0.057s
success copy gatsby files - 0.075s
success Compiling Gatsby Functions - 0.163s
success onPreBootstrap - 0.172s
success createSchemaCustomization - 0.009s
error (node:42457) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
success Checking for changed pages - 0.000s
success source and transform nodes - 0.563s
success building schema - 0.222s
success createPages - 0.048s
success createPagesStatefully - 0.088s
info Total nodes: 64, SitePage nodes: 14 (use --verbose for breakdown)
success Checking for changed pages - 0.000s
success write out redirect data - 0.001s
success Build manifest and related icons - 0.117s
success onPostBootstrap - 0.121s
info bootstrap finished - 2.916s
success onPreExtractQueries - 0.001s
success extract queries from components - 0.827s
success write out requires - 0.003s
[webpack-dev-middleware] wait until bundle finished: /

You can now view rep in the browser.

http://localhost:8000/

View GraphiQL, an in-browser IDE, to explore your site’s data and schema

http://localhost:8000/___graphql

Note that the development build is not optimized.
To create a production build, use gatsby build

success Building development bundle - 6.573s
success Writing page-data.json and slice-data.json files to public directory - 0.040s - 3/3 74.58/s
:heavy_check_mark: Waiting for framework port 8000. This can be configured using the ‘targetPort’ property in the netlify.toml

(dev.command completed in 11s)

│ ◈ Server now ready on http://localhost:8888

Hi @tik9 :wave:t6: ,

Can you please provide what site you are referring to? As well as the steps you have taken to resolve this issue.

Also please give this a read and see if this helps.

1:18:35 PM: Error: Cannot find module ‘./util.js’

1:18:35 PM: Require stack:

1:18:35 PM: - /opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js

1:18:35 PM: - /opt/build/repo/node_modules/yurnalist/dist/index.js

1:18:35 PM: - /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli/lib/reporter/loggers/yurnalist/index.js

i have the same issue how can i solve this please

Hi @carolin :wave:t6: ,

Welcome to the forums thanks so much for reaching out.

Can you please provide your site name and confirm you and read this support guide first to see if it helps you solve your problem.

It is a compilation of all of our build and deploy resources. This is a good starting point.

Lastly, please share these additional details so we can look into your experience further:

  • the name of your build instance: “example-jones.netlify.com 1
  • your project repo
  • a full copy of your latest deploy log
  • what you have already tried
  • any error messages you have received in your terminal window or in the developer console

Thanks so much!

the website is www.cool.mt

this is the staging preview that i already have deployed last week

on localhost it is working fine
but when i come to deploy on netlify im getting that error

build instance: https://63bf07344cee8b0009566322--cool-carpooling.netlify.app/
repo: https://github.com/davorinhabrun/cool-website/tree/master

Things i tried: re installed npm, removed cache, tried different versions of node and other packages

full deploy log:
https://ctxt.io/2/AACQ0I1WFA

i removed the node modules
i cleared the cache
i re intalled npm
i confirmed that the node version on netlify is the same im using

do you know what else can be done please

@SamO

Hey @carolin , I’m wondering if you have tried installing the Gatsby plugin (since you’re building a Gatsby site) to see if that helps? Here’s a link to that plugin: GitHub - netlify/netlify-plugin-gatsby: A build plugin to integrate Gatsby seamlessly with Netlify

@amelia thanks for your reply

i installed gatsby plugin
updated node
updated nvm and updated npm to the right versions now

but im still getting another error

https://ctxt.io/2/AAAQJ8iLFw

this is the error since the other link has expired

https://justpaste.it/a2psm

Hi @carolin,

Reviewing the latest deploy log, we see the build is generating this error:

9:51:42 PM: Error: error:0308010C:digital envelope routines::unsupported

This thread in Stackoverflow has a potential fix:

export NODE_OPTIONS=--openssl-legacy-provider

Could you try the solution and see if that works for you?

Back again, I installed the netlify-plugin-gatsby amd then deployed it with ntl deploy --alias=t.
Site is t–tire.netlify.app

The deploy log is:
5:10:44 PM: Starting post processing 5:10:44 PM: Post processing - HTML 5:10:44 PM: Post processing - header rules 5:10:44 PM: Post processing - redirect rules 5:10:44 PM: Post processing done 5:10:44 PM: Section completed: postprocessing 5:10:45 PM: Site is live ✨

The site does not show, I get 404.
Do I have to build it, i.e. push it to github and then let it build?
I think that “ntl deploy --alias” should be enough to test, but I do not get error messages.

So I built it and it seems the same error as above - Node is v19:
… Again I see the problematic module yurnalist in the log of today, 20 january 2023:
10:30:08 PM: Error: Cannot find module ‘./util.js’
10:30:08 PM: Require stack:
10:30:08 PM: - /opt/build/repo/node_modules/yurnalist/dist/reporters/console/console-reporter.js
10:30:08 PM: - /opt/build/repo/node_modules/yurnalist/dist/index.js

I cannot paste the complete log because of size limit, can you netlify guys have a look at the log? App is tire

I don’t see any site with name: t–tire. Is that the correct site?

The site is https://tire.netlify.app

I think the actual error is this line:

3:00:06 AM:   WebpackError: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

You should try to solve that error before moving to the next steps.

ok, I know it is not your job to answer this question but: is the error related to my code or a lib code like “webpack” or “react-dom”?

Hi @tik9 ,

I’m not sure without seeing your code but I think it’s your code. I recommend you debug.

@Melvin

issue still happening unfortunately

error in this link: JustPaste.it - Share Text & Images the Easy Way

Hey @carolin,

I don’t see the flag being attached in the logs you shared. Are you sure you’ve done that? Could you show how you’re doing it?

I think your build command should look like:

NODE_OPTIONS=–openssl-legacy-provider gatsby build

@hrishikesh can you kindly advise where this needs to be done cause im quite new to netlify and gatsby

Hi @carolin welcome back to the forums :wave:t6: ,

Here is a docs page that shows you where you build command should be and what it looks like in the UI.