-
What I expect to work cd /path/to/my-local-package
yarn link cd /path/to/my-project
yarn link "my-local-package" Now "my-local-package" should be a dependency inside "my-project" but instead i got this error "Usage Error: Invalid destination 'my-local-package'; Can't link the project to itself" Is it because my local package has a scope prefix? -- I do not work with workspaces -- For example with Bun this works just as expected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest taking a look at the documentation for the command at https://yarnpkg.com/cli/link or by running yarn link --help In your case you would run yarn link /path/to/my-local-package from |
Beta Was this translation helpful? Give feedback.
I suggest taking a look at the documentation for the command at https://yarnpkg.com/cli/link or by running
In your case you would run
from
/path/to/my-project
.