From 57043ef8af62e1828a53cdaf82bbba9861bbab79 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 1 Jun 2021 20:04:10 +0800 Subject: [PATCH] Docs: Add note about yarn2 linking --- docs/contribute/code.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/contribute/code.md b/docs/contribute/code.md index 3fa5087ec166..f21c6238c81b 100644 --- a/docs/contribute/code.md +++ b/docs/contribute/code.md @@ -135,6 +135,10 @@ If you already have a reproduction on your local machine, you can similarly link npx sb@next link --local /path/to/local-repro-directory ``` +
+💡 The `sb link` command relies on `yarn 2` linking under the hood. It requires that the local repro is using `yarn 2`, which will be the case if you're using the [`sb repro` command](./how-to-reproduce) per our contributing guidelines. If you are trying to link to a non-`yarn 2` project, linking will fail. +
+ ## Troubleshooting