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
Installing a local optionalDependency leads to an non-existing file error #7678
Comments
I would go even further and make it work also for dependencies:
Why? Because it is a very important feature for linking React Native Libraries.
If But, this will only work when we keep Thus, I think it is a very important feature to provide a way to bypass checking local files in general, not only for |
I'm having the same issue. Having this feature would help a lot when working with libraries that require local dependencies during development. |
I'm having the same issue. It happened with downloading the Prisma client which led to the following error:
I deleted the |
I'm having this issue as well with yarn install
|
This was meanwhile answered by @arcanis in yarnpkg/berry#4306 (comment), Yarn actually requires to resolve optional dependencies for reasons of a consistent resolution. Checkout https://github.com/kristian/yarn-plugin-better-optional for a potential workaround. I have never tested it with local files though. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When installing a package with yarn, which has an optionalDependency to a local file, which is non-existant then
yarn install
fails with an error:package.json
Leads to the error:
If the current behavior is a bug, please provide the steps to reproduce.
yarn install
any package with on optional local dependency which the folder does not exist.What is the expected behavior?
As the dependency is optional anyways, the expected behaviour would be that only a warning, is logged and the install command ends with an success.
The text was updated successfully, but these errors were encountered: