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

Missing peer dependency on typescript in @vue/apollo-composable #1499

Closed
jnoordsij opened this issue Aug 15, 2023 · 1 comment
Closed

Missing peer dependency on typescript in @vue/apollo-composable #1499

jnoordsij opened this issue Aug 15, 2023 · 1 comment

Comments

@jnoordsij
Copy link
Contributor

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:

  1. (any empty directory)
  2. yarn set version berry
  3. 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: "*"
@jnoordsij
Copy link
Contributor Author

Fixed by ts-essentials/ts-essentials#371

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

Successfully merging a pull request may close this issue.

1 participant