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
-
-
Create a .npmbundlerrc file in your project
-
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.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión