Troubleshooting
Problem
To set up Order Hub customization for creating a new application, follow all the steps outlined in the official IBM documentation: Creating New Applications – IBM Order Management: https://www.ibm.com/docs/en/order-management-sw/10.0.0?topic=hub-creating-new-applications
During the execution of the yarn start-app command, you may encounter the following error:
$ orderhub-cli start-app -c ./app-config.json --with-single-spa --overrides-json overrides.json node:internal/modules/cjs/loader:1074 throw new ERR_REQUIRE_ESM(filename, true); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/suhasphansalkar/Downloads/orderhub-code_25.1.3.0/custom-monorepo/node_modules/@buc/cli/node_modules/yargs/index.mjs not supported. Instead change the require of /Users/suhasphansalkar/Downloads/orderhub-code_25.1.3.0/custom-monorepo/node_modules/@buc/cli/node_modules/yargs/index.mjs to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/Users/suhasphansalkar/Downloads/orderhub-code_25.1.3.0/custom-monorepo/node_modules/@buc/cli/src/cli.js:16:36) { code: 'ERR_REQUIRE_ESM' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Symptom
Cause
Diagnosing The Problem
Resolving The Problem
(a) Open the packages.json file under custom-monorepo and add following:
"resolutions": {
"yargs": "17.7.2"
}
(b) Install yargs version forcefully:
yarn cache clean
yarn add yargs@17.7.2 -W
Run one of the following commands to reinstall the latest version of @buc/schematics to access the IBM-provided schematics. For Angular v15, run the following command.
npm uninstall -g @buc/schematics
npm install -g ./lib/buc/schematics/schematics-v3latest.tgz
Related Information
Document Location
Worldwide
Product Synonym
oms; orderhub; order hub;
Was this topic helpful?
Document Information
Modified date:
21 July 2025
UID
ibm17240127