我正在构建一个使用关键css提取插件的vue/gridsome应用程序。它在本地运行得很好,但我正在为github操作构建而苦苦挣扎。
Extract critical CSS (1 pages)
Error: Failed to launch the browser process!
/github/workspace/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while
loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
我一直在寻找解决方案,似乎缺少linux / unbuntu依赖项,所以我尝试将它们添加到我的yml工作流中,如下所示:https://medium.com/@cloverinks/how-to-fix-puppetteer-error-ibx11-xcb-so-1-on-ubuntu-152c336368
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Req
run: sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
它仍然失败,是我错过了一个步骤,还是azure静态web应用程序和github操作存在限制?
谢谢
发布于 2020-12-17 03:39:24
这是一个已知的问题,下面的讨论线程建议了一个解决方法:https://github.com/Azure/static-web-apps/issues/99
“我们的产品工程团队已经意识到了这个问题,但不幸的是,目前还没有一个永久的解决方案。随着静态Web应用程序向一般可用性(GA)靠拢,其中许多问题应该得到解决,因为他们目前正在将产品从公众预览版中成熟出来,并试图让它为GA做好准备。”
为了让社区受益:复制了你和我的同事布莱恩在Microsoft Q&A thread上的讨论--谢谢你的后续行动和更新,迈克尔。非常感谢。
发布于 2020-11-29 07:59:39
你使用try this了吗?
sudo apt-get install ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
https://stackoverflow.com/questions/65048003
复制相似问题