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

VueCompilerError: v-model can only be used on <input>, <textarea> and <select> elements #143

Open
proea opened this issue Jul 20, 2022 · 8 comments

Comments

@proea
Copy link

proea commented Jul 20, 2022

There is incorrect usage of v-model in Facebook.vue:

<span
class="counter-facebook"
v-model="counter_facebook"
v-if="this.$props.has_counter"
>

node_modules/vue-goodshare/src/providers/Facebook.vue:19:7
17 |      <span
18 |        class="counter-facebook"
19 |        v-model="counter_facebook"
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
20 |        v-if="this.$props.has_counter"
21 |      >

webpack compiled with 2 errors
@welcome
Copy link

welcome bot commented Jul 20, 2022

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!

@stale
Copy link

stale bot commented Sep 21, 2022

👋 Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the wontfix label Sep 21, 2022
@EisFrei
Copy link

EisFrei commented Sep 27, 2022

I can confirm that this issue is still relevant when using vue 3.2.39

@stale stale bot removed the wontfix label Sep 27, 2022
@koddr
Copy link
Owner

koddr commented Sep 27, 2022

I can confirm that this issue is still relevant when using vue 3.2.39

Hi,

Can you please try to another Vue.js version?

@EisFrei
Copy link

EisFrei commented Sep 27, 2022

Hi,

Can you please try to another Vue.js version?

The error message was added three years ago, so I suppose it affects the versions that were released in the last 3 years.

v-model is a two-way binding and doesn't serve any purpose on a span. Having {{ counter_facebook }} will suffice to output the number.

I tried removing all v-model="counter_*" instances and everything works as intended.

Will you accept a PR removing the v-models?

@JuanxCursed
Copy link

+1 same issue here

@stale
Copy link

stale bot commented Jun 1, 2023

👋 Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the wontfix label Jun 1, 2023
@Akonibrahim
Copy link

Yes it still exists. Vue version 3.3.2

@stale stale bot removed the wontfix label Jun 17, 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

No branches or pull requests

5 participants