Skip to content

Ignore un-fetchable optionalDependencies #2780

Answered by merceyz
cprecioso asked this question in Q&A
Discussion options

You must be logged in to vote

I'm consuming a package that has some of their dependencies as optionalDependencies. So far so good.
However, this optional dependencies can't be fetched at all, they're private

optionalDependencies is dependencies that doesn't have to have a successful build, however they can't be missing, so that's something the publisher of that package should change. (#2425 (comment))

However, I don't have access to the original package, I'm just a consumer of it. Is there any workaround for yarn to treat not finding these dependencies as a skippable error?

You can use resolutions to override them to a empty package.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alecmev
Comment options

Answer selected by merceyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants