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.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar