dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

Craco build failing on docker #450

Closed GauravT500 closed 2 years ago

GauravT500 commented 2 years ago

When I run the build on local it works fine but on docker, it fails.

Error: Failed to launch chrome! I am not trying to launch chrome from my docker but on docker it's failing due to this reason.

Please ignore the deprecation warning those warnings are also coming on the local build.

Screenshot 2022-09-02 at 7 18 29 PM

The craco config file that I have used.

Screenshot 2022-09-02 at 7 56 44 PM
snairsumith commented 2 years ago

Same to me, any updates regarding this error ?

GauravT500 commented 2 years ago

@dilanx Could anyone please share the workable for this issue?

dilanx commented 2 years ago

Are you sure this is a craco issue?

Try looking at this: https://stackoverflow.com/questions/71040681/qemu-x86-64-could-not-open-lib64-ld-linux-x86-64-so-2-no-such-file-or-direc

GauravT500 commented 2 years ago

I had tried this earlier but changing the base image did not make any difference.

snairsumith commented 2 years ago

Any updates regarding this issue ?

snairsumith commented 2 years ago

@GauravT500 did you find any solution about this issue ?

snairsumith commented 2 years ago

@GauravT500 This issue not related to Craco . If i remove the html-critical-webpack-plugin then the build error resolved . You can also check the details here https://www.npmjs.com/package/html-critical-webpack-plugin

GauravT500 commented 2 years ago

@snairsumith Yes, I tried this if you want to use html-critical-webpack-plugin then you need chrome/chromium installed in the docker container.

snairsumith commented 2 years ago

Hi @GauravT500 are you using Ubuntu ? I am installed chromium-browser but still getting the error