Legacy Knowledge Base
Published Jun. 30, 2025

Test cases bundled in jar using the "react-select" dependency resulting in deployment error

Written By

Marco Abamonga

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

  • Deployment of a jar that includes "react-select" as a dependency in package.json may fail due to test cases that were bundled as part of the build process, in particular test/resolver/malformed_package_json/package.json

Environment

  • DXP 7.4

Resolution

    1. Create a .npmbundlerrc file in your project

    2. Add the following lines

      {
      "exclude": {
      "*": ["test"]
      }

      }

    3. Remove all files in the build folder

  • 4. Run npm run build

    The jar file should now deploy without any errors.

 

Did this article resolve your issue ?

Legacy Knowledge Base