Custom Build Command doesn't support yarn playwright install-deps ?

hallidaiPRO

8 months ago

Now this is my custom build command yarn playwright install-deps
and I got this error report while build
27.16 Installing dependencies...

Aug 11 19:25:38

27.18 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/p3ffjixpnfgkqh20nsrc13vrj3yfi0nj-gcc-13.2.0-lib/lib/libstdc++.so.6)

Aug 11 19:25:38

27.18 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/p3ffjixpnfgkqh20nsrc13vrj3yfi0nj-gcc-13.2.0-lib/lib/libstdc++.so.6)

Aug 11 19:25:38

27.18 Failed to install browser dependencies

24 | >>> RUN --mount=type=cache,id=s/0f45d1e0-bc39-41f2-ba9f-a39a4e80fab6-node_modules/cache,target=/app/node_modules/.cache yarn install && yarn add sharp --ignore-engines && yarn playwright install && yarn playwright install-deps && yarn build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install && yarn add sharp --ignore-engines && yarn playwright install && yarn playwright install-deps && yarn build" did not complete successfully: exit code: 1

5 Replies

8 months ago

To significantly lower your build friction I would highly recommend Browserless.

You can self host it on Railway! - https://railway.app/template/0jqemX

And please see the playwright example here - https://github.com/brody192/playwright-example


brody

To significantly lower your build friction I would highly recommend Browserless.You can self host it on Railway! - https://railway.app/template/0jqemXAnd please see the playwright example here - https://github.com/brody192/playwright-example

mordye137HOBBY

4 months ago

Hi Brody! I'm hosting a discord bot built in python. I found that I need to use playwrite for part of it. I was wondering if you wouldn't mind helping me set up the usage


4 months ago

Same exact template as linked above, but here is the playwright example repo instead -

https://github.com/brody192/playwright-example-python


brody

Same exact template as linked above, but here is the playwright example repo instead -https://github.com/brody192/playwright-example-python

mordye137HOBBY

4 months ago

Thanks brody! I'm running into this error message in my output:

Attachments


4 months ago

You would want to update your client version to the version shown as the server version.


Custom Build Command doesn't support yarn playwright install-deps ? - Railway Help Station