Skip to content

BUILD:APP and BUILD:LIB missing in Package.json #491

@wrzfab

Description

@wrzfab

Is this a regression?

Yes

Severity

🟡 Minor – small but noticeable issue

Please provide the branch(es) you discovered this issue in

v100

Environment Details

OneIdentity Version 10 LTS

Please provide a minimal set of steps to reproduce the issue

  1. Run the imxclient.exe compile-app command with correct connection details
  2. See that it will crash with the following reason:
    npm error Missing script: "build:app"

Description

imxclient.exe compile-app fails due to missing BUILD:APP / BUILD:LIB npm scripts since v9.3

Description

Running imxclient.exe compile-app as part of a release CI/CD pipeline fails with an error
indicating that the BUILD:APP and BUILD:LIB npm scripts cannot be found. These scripts
(four in total, including their Debug variants) were present in imxweb/package.json up to
and including the 9.2 branch but were removed starting with the 9.3 branch and are still
absent in 10.0.


Steps to Reproduce

  1. Check out any branch ≥ 9.3 (or 10.0).
  2. Run imxclient.exe compile-app as part of a CI/CD pipeline.
  3. Observe the build failure.

Expected Behavior

imxclient.exe compile-app completes successfully, as it did on branches 9.0 – 9.2.


Actual Behavior

The process crashes with an error stating that the BUILD:APP and BUILD:LIB scripts
(and their Debug counterparts) are missing from imxweb/package.json.


Root Cause

The four npm scripts were present in 9.0 – 9.2:

"build:app": "ng build --aot --configuration production",

They are no longer present starting with 9.3 / 10.0:

"nx:build": "npx nx build",


Workaround

Manually re-add the four missing script entries to imxweb/package.json. This restores the
expected behaviour.


Proposed Fix

Either:

  • Re-add the BUILD:APP, BUILD:LIB, BUILD:APP:Debug, and BUILD:LIB:Debug scripts to
    imxweb/package.json, or
  • Update the imxclient.exe compile-app logic to no longer depend on these script names.

Environment

Field Value
Affected versions 9.3, 10.0
Working versions 9.0 – 9.2
Tool imxclient.exe compile-app

Describe what you expected to happen versus what actually happened

Expected Behavior

imxclient.exe compile-app invokes the BUILD:APP and BUILD:LIB npm scripts (and their
Debug variants) defined in imxweb/package.json to compile the Angular workspace. The
command completes without error and produces the compiled application output, exactly as it
did on branches 9.0 – 9.2.


Actual Behavior

imxclient.exe compile-app exits with an error immediately after launch, reporting that the
required npm scripts (BUILD:APP, BUILD:LIB, BUILD:APP:Debug, BUILD:LIB:Debug) do not
exist in imxweb/package.json. No compilation takes place. The CI/CD release pipeline fails
at this step and cannot proceed.

Relevant logs or console output

2026-05-22 08:17:07.5828 INFO (WebCompiler  ) : Starting process C:\ProgramData\nodejs\node-v24.15.0-win-x64\npm.cmd run build:app qbm-app-landingpage --scripts-prepend-node-path=true 
2026-05-22 08:17:07.9344 ERROR (WebCompiler  ) : The command generated the following console output: 
npm warn Unknown cli config "--scripts-prepend-node-path". This will stop working in the next major version of npm.
npm error Missing script: "build:app"
npm error
npm error Did you mean this?
npm error   npm run build:lib # run the "build:lib" package script
npm error

Add a screenshot(s) if that helps illustrate the problem

No response

Suggested Fix

Suggested Fix

Re-add the four missing npm scripts to imxweb/package.json:

"BUILD:APP": "ng build",
"BUILD:APP:Debug": "ng build --configuration=development",
"BUILD:LIB": "ng build --configuration=production",
"BUILD:LIB:Debug": "ng build --configuration=development"

### Anything else?

_No response_

### Before submitting...

- [x] I have searched for existing issues that match this one on github and on the community support page
- [x] I have included all necessary details to reproduce this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions