legacy-knowledge-base
公開されました Jun. 30, 2025

globalThis.process?.argv object contains an array set

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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?.argv was an array in DXP 7.3 is 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

did-this-article-resolve-your-issue

legacy-knowledge-base