我完成了 的设置react-snap
,但是当推送到Heroku
它时失败。
https://www.npmjs.com/package/react-snap
你知道为什么吗?
remote: Error: Failed to launch chrome!
remote: /tmp/build_7dd913c10a184386f4680b1463b79feb/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
我添加了所需的构建包: