-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Typescript Imports are Broken on @vue/apollo-composable alpha 11 & 12 #1093
Comments
Same here, when upgrading the package
When opening file package.json
|
also encountered it. fixed it by moving to apollo/client v3. see here for migration steps: |
Upgrading to the latest packages and following the Apollo upgrade guide you suggested completely solved all the TS errors we were having. Thank you very much for pointing me in the right direction. For anyone else having this issue, make sure your package names are correct and the versions are matching. This is a valid example that works:
|
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:
@vue/apollo-composable@latest
and@graphql-condegen/typescript-vue-apollo@latest
yarn graphql-codegen && yarn dev
Parameter x implicitly has an 'any' type.
yarn add @vue/apollo-composable@v4.0.0-alpha.10 && yarn dev
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.10The text was updated successfully, but these errors were encountered: