SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 
Archive
Read only

Build Errors

nicholas1959
Explorer
0 Likes
2,325
I have not tried to build for the past 2 months but am now getting only to 24% to 95% build.  I am consistently
getting this error, any help would be great. Thanks.

AB version: 3.28.0 COMMAND: USER_METERING_ENABLED=true SHOW_SUBSCRIPTION_VERIFICATION_NOTIFICATION=false SUBSCRIPTION_VERIFICATION_NOTIFICATION_DISMISSIBLE=true NEXT_SUPPORT_RELATIVE_PATHS=true NODE_OPTIONS=--max-old-space-size=2000 --no-experimental-global-navigator npxrnv export -p web -s standalone -c standalone --ci --yes --packageManager yarn FAILED with ERROR: warn: You have integration @sba-runtime/integration-builder defined, but it wasn't found in package.json. ERR: Error: Cannot find module '../renative.json' Require stack: - ./node_modules/@sba-runtime/integration-builder/lib/config.js - ./node_modules/@sba-runtime/integration-builder/lib/tasks/taskExport.js - ./node_modules/@sba-runtime/integration-builder/lib/index.js - ./node_modules/@rnv/core/lib/modules/index.js Error: ENOENT: no such file or directory, open '/app/.appgyver/app/renative.private.json' at Object.openSync (node:fs:561:18) at Object.readFileSync (node:fs:445:35) at handleCryptoApiKeys (/app/current/buildHooks/dist/index.js:29381:56) at /app/current/node_modules/@rnv/core/src/buildHooks/index.ts:21:50 at Object.dynatraceRegularInvoke [as doInvoke] (/opt/dynatrace/oneagent-paas/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:4087:22) error: ⨯ ○ export: COMMAND: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build FAILED with ERROR: > Build failed because of webpack errors Error: Command failed with exit code 1: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build ⚠ Invalid next.config.js options detected: ⚠ Invalid input at "env.supportRelativePaths" ⚠ Expected string, received boolean at "env.supportRelativePaths" ⚠ Expected undefined, received boolean at "env.supportRelativePaths" ⚠ Invalid input at "env.appSwitcherTests" > Build failed because of webpack errors Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry ▲ Next.js 14.2.26 at makeError (/app/current/node_modules/execa/lib/error.js:60:11) at handlePromise (/app/current/node_modules/execa/index.js:118:26) at processTicksAndRejections (node:internal/process/task_queues:105:5) ⚠ Invalid next.config.js options detected: ⚠ Invalid input at "env.supportRelativePaths" ⚠ Expected string, received boolean at "env.supportRelativePaths" > Build failed because of webpack errors ┌─────────────────────────────────────────────────────────────────┐ │ ⨯ SUMMARY | 6/9/2025, 6:08:21 AM | rnv@1.3.0-feat-old-overrides.0 │ $ npx rnv export -p web -s standalone -c standalone --ci --yes --packageManager yarn ├─────────────────────────────────────────────────────────────────┤ │ Project: app@0.1.0 │ │ warn: You have integration @sba-runtime/integration-builder defined, but it wasn't found in package.json. ERR: Error: Cannot find module '../renative.json' Require stack: - ./node_modules/@sba-runtime/integration-builder/lib/config.js - ./node_modules/@sba-runtime/integration-builder/lib/tasks/taskExport.js - ./node_modules/@sba-runtime/integration-builder/lib/index.js - ./node_modules/@rnv/core/lib/modules/index.js │ error: ⨯ ○ export: COMMAND: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build FAILED with ERROR: > Build failed because of webpack errors Error: Command failed with exit code 1: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build ⚠ Invalid next.config.js options detected: ⚠ Invalid input at "env.supportRelativePaths" ⚠ Expected string, received boolean at "env.supportRelativePaths" ⚠ Expected undefined, received boolean at "env.supportRelativePaths" ⚠ Invalid input at "env.appSwitcherTests" > Build failed because of webpack errors Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry ▲ Next.js 14.2.26 at makeError (/app/current/node_modules/execa/lib/error.js:60:11) at handlePromise (/app/current/node_modules/execa/index.js:118:26) at processTicksAndRejections (node:internal/process/task_queues:105:5) ⚠ Invalid next.config.js options detected: ⚠ Invalid input at "env.supportRelativePaths" ⚠ Expected string, received boolean at "env.supportRelativePaths" > Build failed because of webpack errors │ Project location: ./platformBuilds/standalone_web │ └─────────────────────────────────────────────────────────────────┘
3 REPLIES 3
Read only

Josephrezende
Explorer
0 Likes
2,319

Hi Nicholas, I had the same issue, the problem is on the embedded map component, just uninstall it and it will build, if you use the map component the SAP team told to update it, you can see my post here
https://community.sap.com/t5/application-development-and-automation-discussions/please-help-erro-quo...

Read only

nicholas1959
Explorer
0 Likes
2,318
Hello again Josephrezende, 
Unfortunately I built it again after updating all components and still had the following error:
 
AB version: 3.28.0
COMMAND: 

USER_METERING_ENABLED=true SHOW_SUBSCRIPTION_VERIFICATION_NOTIFICATION=false SUBSCRIPTION_VERIFICATION_NOTIFICATION_DISMISSIBLE=true NEXT_SUPPORT_RELATIVE_PATHS=true NODE_OPTIONS=--max-old-space-size=2000 --no-experimental-global-navigator  npxrnv export -p web -s standalone -c standalone --ci --yes --packageManager yarn 

FAILED with ERROR: 

warn: You have integration @sba-runtime/integration-builder defined, but it wasn't found in package.json. ERR: Error: Cannot find module '../renative.json'
Require stack:
- ./node_modules/@sba-runtime/integration-builder/lib/config.js
- ./node_modules/@sba-runtime/integration-builder/lib/tasks/taskExport.js
- ./node_modules/@sba-runtime/integration-builder/lib/index.js
- ./node_modules/@rnv/core/lib/modules/index.js
Error: ENOENT: no such file or directory, open '/app/.appgyver/app/renative.private.json'
 at Object.openSync (node:fs:561:18)
 at Object.readFileSync (node:fs:445:35)
 at handleCryptoApiKeys (/app/current/buildHooks/dist/index.js:29381:56)
 at /app/current/node_modules/@rnv/core/src/buildHooks/index.ts:21:50
 at Object.dynatraceRegularInvoke [as doInvoke] (/opt/dynatrace/oneagent-paas/agent/bin/1.311.79.20250515-130846/any/nodejs/nodejsagent.js:4087:22)
error: ⨯ ○ export: COMMAND: 
node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build 
FAILED with ERROR: 
> Build failed because of webpack errors
Error: Command failed with exit code 1: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build
 Invalid next.config.js options detected:
 Invalid input at "env.supportRelativePaths"
 Expected string, received boolean at "env.supportRelativePaths"
 Expected undefined, received boolean at "env.supportRelativePaths"
 Invalid input at "env.appSwitcherTests"
> Build failed because of webpack errors
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
 ▲ Next.js 14.2.26
 at makeError (/app/current/node_modules/execa/lib/error.js:60:11)
 at handlePromise (/app/current/node_modules/execa/index.js:118:26)
 at processTicksAndRejections (node:internal/process/task_queues:105:5)
 Invalid next.config.js options detected:
 Invalid input at "env.supportRelativePaths"
 Expected string, received boolean at "env.supportRelativePaths"
> Build failed because of webpack errors
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 6/10/2025, 3:10:52 PM | rnv@1.3.0-feat-old-overrides.0
│ $ npx rnv export -p web -s standalone -c standalone --ci --yes --packageManager yarn
├─────────────────────────────────────────────────────────────────┤
│ Project: app@0.1.0 │
│ warn: You have integration @sba-runtime/integration-builder defined, but it wasn't found in package.json. ERR: Error: Cannot find module '../renative.json'
Require stack:
- ./node_modules/@sba-runtime/integration-builder/lib/config.js
- ./node_modules/@sba-runtime/integration-builder/lib/tasks/taskExport.js
- ./node_modules/@sba-runtime/integration-builder/lib/index.js
- ./node_modules/@rnv/core/lib/modules/index.js
│ error: ⨯ ○ export: COMMAND: 
node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build 
FAILED with ERROR: 
> Build failed because of webpack errors
Error: Command failed with exit code 1: node --max-old-space-size=12000 /app/current/node_modules/next/dist/bin/next build
 Invalid next.config.js options detected:
 Invalid input at "env.supportRelativePaths"
 Expected string, received boolean at "env.supportRelativePaths"
 Expected undefined, received boolean at "env.supportRelativePaths"
 Invalid input at "env.appSwitcherTests"
> Build failed because of webpack errors
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
 ▲ Next.js 14.2.26
 at makeError (/app/current/node_modules/execa/lib/error.js:60:11)
 at handlePromise (/app/current/node_modules/execa/index.js:118:26)
 at processTicksAndRejections (node:internal/process/task_queues:105:5)
 Invalid next.config.js options detected:
 Invalid input at "env.supportRelativePaths"
 Expected string, received boolean at "env.supportRelativePaths"
> Build failed because of webpack errors
│ Project location: ./platformBuilds/standalone_web │
Any suggestions would be great. 
thanks again.
 
Nick
Read only

2,318

Ok belay that.  I reread your post and I had a Map component (Beta).  It probably didn't update from marketplace since it was a beta version.  I deleted it and all is good now.  The build was successful.

You're a lifesaver, thanks again,

Nick