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

Type error with Vue 2.7 #339

Closed
rchl opened this issue Jul 19, 2022 · 2 comments
Closed

Type error with Vue 2.7 #339

rchl opened this issue Jul 19, 2022 · 2 comments
Labels
Type: Bug Something isn't working

Comments

@rchl
Copy link
Contributor

rchl commented Jul 19, 2022

Versions

  • 1.0

Describe the bug

Generic type 'CombinedVueInstance' requires 6 type argument(s).

Screenshot 2022-07-19 at 23 02 18

Expected behavior

No type error

Steps to reproduce

Steps:

  1. Use in a project that has Vue 2.7 in dependencies
  2. Type check the project

Your Environment

  • Device: -
  • OS: macos
  • Browser -
  • Version -

Additional context

CombinedVueInstance has additional argument SetupBindings in its type:

export type CombinedVueInstance<
  Instance extends Vue,
  Data,
  Methods,
  Computed,
  Props,
  SetupBindings
> = Data &
  Methods &
  Computed &
  Props &
  Instance &
  (SetupBindings extends void ? {} : SetupBindings)

I believe that CombinedVueInstance is considered internal by Vue so ideally it wouldn't be referenced directly.

@rchl rchl added the Type: Bug Something isn't working label Jul 19, 2022
@Swedish-li
Copy link

Swedish-li commented Sep 27, 2022

Maybe you need update vue to v2.7.10
vuejs/vue#12727

@rchl
Copy link
Contributor Author

rchl commented Sep 27, 2022

Cool, thanks for pointing that out.
This was not the case at the time of creating this issue. :)

@rchl rchl closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants