Issue
-
The globalThis.process?.argv object contains an array set in DXP 7.3, but in the latest release 2024.Q2.6, this is null or undefined.
Environment
- Liferay DXP [all versions]
Resolution
-
In this scenario, Liferay can't do much about this since that
globalThis.process?.argvwas an array inDXP 7.3is an implementation detail, not a DXP official API, so users may proceed as per their convenience here. -
Moreover, if anyone wants to work on this, they can try the following:
- Please evaluate this at their end to fix it in their code, where it is read.
- Inject JS code by any of the blessed methods (themes, CXs, TopHeadDynamicInclude, etc.) provided by DXP that sets that value to an array.
NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.
Additional Information
-
Here are some of the following documentation that covers these mentioned methods, just for reference purposes:
Customize-Extend-the-out-of-the-box-classic-theme
Creating-and-building-themes-in-Liferay-Maven-Workspace
Creating Theme
Dynamic-including-and-importing-Javascript-files