You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use yalc add <package> --link but I noticed that the original dependencies of the package I'm consuming are being dropped after I run yarn install
So if my yarn.lock file originally looked like
As such, I end up missing some dependencies needed by my-local-package and cannot start my consumer app.
Any ideas if there is a way past this? Ideally to ensure that the dependencies of a yalc'd package are installed while using --link.
I'm using link instead of the classic file because I don't want to have to run yarn install every time I push changes to my-local-package. link allows me to pick up changes on reload
The text was updated successfully, but these errors were encountered:
OmarJaroudi
changed the title
Dependencies being dropped from yarn.lock when using --link
Dependencies not being installed when using --linkFeb 17, 2023
From what we can see, the link protocol doesn't follow package dependencies. Meaning that if we link to a package, the package dependencies won't actually be installed.
This is solved by the portal protocol - which should work in the exact same way as link but it actually installs the dependencies of the link.
Hello,
I want to use
yalc add <package> --link
but I noticed that the original dependencies of the package I'm consuming are being dropped after I runyarn install
So if my
yarn.lock
file originally looked likeAfter running
yalc add --link
the entry for that package in myyarn.lock
file looks likeAs such, I end up missing some dependencies needed by
my-local-package
and cannot start my consumer app.Any ideas if there is a way past this? Ideally to ensure that the dependencies of a yalc'd package are installed while using --link.
I'm using
link
instead of the classicfile
because I don't want to have to runyarn install
every time I push changes tomy-local-package
.link
allows me to pick up changes on reloadThe text was updated successfully, but these errors were encountered: