Troubleshooting Order Hub customizations
Review this topic to help troubleshoot your Order Hub customizations.
Custom translations or JSON changes not working after deployment but works on local development
If custom translations or JSON changes work correctly, you see extra network requests in the browser's develop console where Order Hub tries to load the JSON files from the custom folder paths.
To resolve this issue if you do not see these requests:
Ensure that you complete Step 8 when you are preparing pages and routes for customizations:
environment.customization = true;
Unable to resolve bare specifier
error : zone.js:202 Uncaught Error: Error: Unable to resolve bare specifier '<route>' from https://static.omsbusinessusercontrols.ibm.com/<app name>/ (SystemJS Error#8 https://git.io/JvFET#8
To resolve this issue:
Check the import-map.json file and see the paths starts with a forward slash
/
. Ensure that when the package-customization command is run, you have provided the
context root properly starting with forward slash /
.
504 error when deploying customizations
A 504 error is encountered when running the yarn orderhub-cli
publish-customization
command.
This typically indicates that the command has timed out while waiting for a response from the server that is uploading the data. However, the server does successfully process the upload. The upload just took longer than the timeout value on the command.
To resolve this issue:
First check to see if your customizations are applied in the tenant. If the customizations are not applied in the tenant, contact IBM support.
Unsupported node version
Uncaught Error: Module build failed (from ../../node_modules/babel-loader/lib/index.js):
Error: error:0308010C:digital envelope routines::unsupported
To resolve this issue:
Ensure that you are using Node version 16.