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


  • 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


  • DXP 7.4


    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.


¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0