Yarn berry (v3 for example) is to enforce explicit dependencies by design. So dependencies that are not listed will not be available. The fix is to declare or share the dependency in the relevant workspace.