Skip to content
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

Closed
chandlerprall opened this issue Oct 19, 2016 · 4 comments
Closed

nested dependencies with relative paths fails #1263

chandlerprall opened this issue Oct 19, 2016 · 4 comments

Comments

@chandlerprall
Copy link

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 on a, and c depends on b)

cding into pkg-b and running yarn works as expected. However, cding intosubdir/pkg-c and running yarn gives the following error:

error "/Users/chandler.prall/yarntest/subdir/pkg-a" doesn't exist. as it resolves pkg-b's dependency file:../pkg-a relative to subdir/pkg-c instead of pkg-b

npm install handles this case correctly

What is the expected behavior?
Running yarn inside subdir/pkg-c should follow nested relative path dependencies correctly and resolve file:pkg-a from pkg-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

@hawkrives
Copy link

Can you give an example of your package.json, please?

@chandlerprall
Copy link
Author

the three package.json files are at https://gist.github.com/chandlerprall/5c5e83df5e1e2281289366c8b01ea21e

@iamturns
Copy link

Looks like a duplicate of #815 ?

@chandlerprall
Copy link
Author

I agree, issue 815 is the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants