Legacy Knowledge Base
Published 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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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