Build failure: Gatsby

Hi team, I was hoping to solve this issue on my own but I didn’t manage. I have a build error which I don’t understand:
Deploy URL: Netlify App

Would you have any idea of how to solve this?


10:18:21 PM: $ npm run build
10:18:21 PM: > gatsby-starter-hello-world@0.1.0 build /opt/build/repo
10:18:21 PM: > gatsby build
10:18:22 PM: internal/modules/cjs/loader.js:491
10:18:22 PM:   throw new ERR_PACKAGE_PATH_NOT_EXPORTED(basePath, mappingKey);
10:18:22 PM:   ^
10:18:22 PM: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './is-truthy' is not defined by "exports" in /opt/build/repo/node_modules/gatsby-core-utils/package.json
10:18:22 PM:     at applyExports (internal/modules/cjs/loader.js:491:9)
10:18:22 PM:     at resolveExports (internal/modules/cjs/loader.js:507:23)
10:18:22 PM:     at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
10:18:22 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
10:18:22 PM:     at Function.Module._load (internal/modules/cjs/loader.js:842:27)
10:18:22 PM:     at Module.require (internal/modules/cjs/loader.js:1026:19)
10:18:22 PM:     at require (internal/modules/cjs/helpers.js:72:18)
10:18:22 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli/lib/reporter/reporter.js:34:17)
10:18:22 PM:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
10:18:22 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) {
10:18:22 PM:   code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
10:18:22 PM: }
10:18:22 PM: npm ERR! code ELIFECYCLE
10:18:22 PM: npm ERR! errno 1
10:18:22 PM: npm ERR! gatsby-starter-hello-world@0.1.0 build: `gatsby build`
10:18:22 PM: npm ERR! Exit status 1
10:18:22 PM: npm ERR!
10:18:22 PM: npm ERR! Failed at the gatsby-starter-hello-world@0.1.0 build script.
10:18:22 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
10:18:22 PM: npm ERR! A complete log of this run can be found in:
10:18:22 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-11-20T21_18_22_300Z-debug.log

Hey @monixm,

it appears you’ve managed to solve the problem?

yes I did manage to resolve it, thanks