Closed TomJWilliams closed 3 years ago
@TomJWilliams Your problem is likely due to puppeteer/chromium installation issues on circleCI. see some of the docs here: https://developers.google.com/web/tools/puppeteer/troubleshooting#running_puppeteer_on_circleci
@SanderElias Thanks for the quick reply. I have performed those steps and included their puppeteer orb. I am still receiving the same error.
@TomJWilliams Sorry, for the delay.
Can you try adding the --noPrompt
command line flag?
@SanderElias I attempted the --noPrompt option and had no additional success. It resulted in the same error message at the same step of the build process in the same line of code.
@SanderElias I just wanted to thank you for your assistance. I believe this issue has to do with alpine linux specifically. I was able to get the build working with CircleCI using both Ubuntu and also Windows Server. However, when I attempt to run the build on an alpine image despite the fact that the dependency installation completes. It still fails to build with the error provided at the beginning of running this issue. I do not know if you want to add something to the documentation regarding validated containers or not. But again I sincerely appreciate the assistance.
@TomJWilliams Thanks for the feedback. I think a FAQ with regards to this would be a welcome PR ;)
@TomJWilliams Thanks for the feedback. I think a FAQ with regards to this would be a welcome PR ;)
@SanderElias sir I would love to contribute. Ideally if you could tell me where in the FAQ I would be more than happy to add it. I was thinking in the FAQ for the CICD portion. Also I was thinking of creating some docker configurations that could be used for CircleCI that could get people started. However, I can understand if this is more niche because there are many people that would just as quickly use GitHub actions, Azure functions, or many the menagerie of CICD tools.
Simply stated, I would be more than happy to contribute in any way that the community or Hero Devs would like me to.
Here is a link. it takes you directly to the gitub editor for the FAQ page. Please take a look at the format we are using and try to keep the same layout. https://github.com/scullyio/scully/edit/main/docs/faq.md?message=docs%3A%20describe%20your%20change...
🐞 Bug report
Description
When building in CircleCI an error is received when attempting to run the command
:thinking: There is a potential this is related to puppeteer in CircleCI. I say this because this error occurs as an unhandled promise rejection when setRawMode of the input stream. I think scully does this after using puppeteer to virtually render but I could be incorrect in this premise.
I have followed the recommended advice in the Running Puppeteer on CircleCI found in the puppeteer troubleshooting documentation.
It is important to note that when running Scully locally against Windows 10 Professional, Scully works flawlessly. This leads me to believe this is either an error when implemented with CircleCI. Or that this is an issue with the container environment used with CircleCI.
Any assistance would be greatly appreciated.
🔬 Minimal Reproduction
Use the below circle ci config and build process
💻Your Environment
CircleCI config
package.json
Angular Version:
Scully Version:
🔥 Exception or Error