Skip to content

Typescript Imports are Broken on @vue/apollo-composable alpha 11 & 12 #1093

Open
@seanaye

Description

@seanaye

Describe the bug
Using @vue/apollo-composable > alpha 10 is breaking typescript imports with @graphql-codegen/typescript-vue-apollo generated code.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a project with @vue/apollo-composable@latest and @graphql-condegen/typescript-vue-apollo@latest
  2. yarn graphql-codegen && yarn dev
  3. Slew of Parameter x implicitly has an 'any' type.
  4. yarn add @vue/apollo-composable@v4.0.0-alpha.10 && yarn dev
  5. All typescript errors are gone and composition functions have correct typing

Expected behavior
All type imports should be working on versions greater than alpha.10

Versions
vue: 2.6
vue-apollo: @vue/apollo-composable@v4.0.0-alpha.12
apollo-client: 2.6.10

Additional context
This appears to be independent of @graphql-codegen/typescript-vue-apollo I have tried creating the codegen files using the latest several versions of @graphql-codegen/typescript-vue-apollo in combination with @vue/apollo-composable. Through trial and error I determined that any codegen file generated with any of the last several versions of @graphql-codegen/typescript-vue-apollo works with apollo-composable alpha 10. Not a single codegen file works with apollo-composable > v.alpha.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions