-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nested dependencies with relative paths fails #1263
Comments
Can you give an example of your |
the three |
Looks like a duplicate of #815 ? |
I agree, issue 815 is the same problem. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Yarn is unable to locate sub-dependency referenced via relative file paths
If the current behavior is a bug, please provide the steps to reproduce.
Created a gist with three package.json files (underscores in file names represent path separators). The folder structure is:
pkg-a/package.json
pkg-b/package.json
subdir/pkg-c/package.json
Each package depends on the previous one (
a
has no dependency,b
depends ona
, andc
depends onb
)cd
ing intopkg-b
and runningyarn
works as expected. However,cd
ing intosubdir/pkg-c
and runningyarn
gives the following error:error "/Users/chandler.prall/yarntest/subdir/pkg-a" doesn't exist.
as it resolvespkg-b
's dependencyfile:../pkg-a
relative tosubdir/pkg-c
instead ofpkg-b
npm install
handles this case correctlyWhat is the expected behavior?
Running
yarn
insidesubdir/pkg-c
should follow nested relative path dependencies correctly and resolvefile:pkg-a
frompkg-b
path.Please mention your node.js, yarn and operating system version.
node.js v6.7.0
yarn v0.16.1
OS X 10.9.4
The text was updated successfully, but these errors were encountered: