Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craco build failing on docker #450

Closed
GauravT500 opened this issue Sep 2, 2022 · 9 comments
Closed

Craco build failing on docker #450

GauravT500 opened this issue Sep 2, 2022 · 9 comments

Comments

@GauravT500
Copy link

GauravT500 commented Sep 2, 2022

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
Copy link

Same to me, any updates regarding this error ?

@GauravT500
Copy link
Author

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

@dilanx
Copy link
Owner

dilanx commented Sep 9, 2022

@GauravT500
Copy link
Author

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

@snairsumith
Copy link

Any updates regarding this issue ?

@snairsumith
Copy link

@GauravT500 did you find any solution about this issue ?

@snairsumith
Copy link

@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
Copy link
Author

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants