Add Support for Yarn 2
B
Braden Sidoti
I am trying to deploy a static app from a monorepo that uses yarn 2 workspaces and I get the following error during yarn install. It seems that render.com assumes that yarn 1 is in place so it invokes the installation command accordingly. I would like it to work with yarn.
Nov 16 05:16:54 PM ==> Installing dependencies with Yarn...
Nov 16 05:16:55 PM Unknown Syntax Error: Invalid option name ("--production=false").
Nov 16 05:16:55 PM $ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
Thank you in advance.
Log In
A
Adrian Moses
Hi! Any chance we can add a note about this to the docs for deploying with Redwood?: https://render.com/docs/deploy-redwood
T
Tim Trautman
Hi! Any update on this? If I understand correctly, this is keeping these instructions from working as expected: https://render.com/docs/deploy-redwood
Š
Štefan Ľupták
Such an unpleasant surprise to find out about this. :-(
J
Joey Figaro
Štefan Ľupták: In the meantime, you can turn off automatic dependency handling by setting the SKIP_INSTALL_DEPS env var to true. You'd have to handle installing deps on your own after that.
A
Andrew Lam
Joey Figaro: How to handle installing deps on my own after that?
B
Bloom Bloom
Andrew Lam: Your
buildCommand
within render.yaml
will now look like buildCommand: yarn && yarn rw deploy render web
.