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

Named mixins functions have a bug infering types of inject properties Vue 2.7.14 #12931

Open
ColinRosati opened this issue Jan 16, 2023 · 0 comments · May be fixed by #12964
Open

Named mixins functions have a bug infering types of inject properties Vue 2.7.14 #12931

ColinRosati opened this issue Jan 16, 2023 · 0 comments · May be fixed by #12964

Comments

@ColinRosati
Copy link

ColinRosati commented Jan 16, 2023

Version

2.7.14

Reproduction link

codesandbox.io

Screenshot 2023-01-16 at 6 42 05 PM

Screenshot 2023-01-16 at 6 42 13 PM

Steps to reproduce

When declaring mixins with named function we can't use properties. See inject properties not inferred.

What is expected?

Named function mixins data is properly inferred

What is actually happening?

There is a problem using mixins that are declared as named functions


I ran into this problem upgrade from 2.6 to 2.7.17 and our app using named function mixins

@ColinRosati ColinRosati changed the title Named mixins have a bug infering types of inject properties Named mixins functions have a bug infering types of inject properties Vue 2.7.14 Jan 16, 2023
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