Missing peer dependency on typescript in @vue/apollo-composable
jnoordsij opened this issue · comments
Describe the bug
When installing this project as dependency through Yarn (v2+), a warning is raised about a missing peer dependency for typescript
.
See also https://yarnpkg.com/advanced/error-codes#yn0002---missing_peer_dependency (and https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0).
To Reproduce
Steps to reproduce the behavior:
- (any empty directory)
yarn set version berry
yarn add @vue/apollo-composable
The following message appears;
YN0002: │ @vue/apollo-composable@npm:4.0.0-beta.8 [dc3fc] doesn't provide typescript (p70fa5), requested by ts-essentials
Expected behavior
No warnings.
Versions
@vue/apollo-composable: 4.0.0-beta.8
Additional context
This can be resolved by adding typescript
as (optional) peer dependency through the package.json
of this package.
Also, the warning can be silenced locally by adding the following to a local .yarnrc.yml
file:
packageExtensions:
"@vue/apollo-composable@*":
peerDependencies:
typescript: "*"