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

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.

 

Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0