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

'v-model' directives aren't supported on <Input> elements? #181

Closed
thearabbit opened this issue Sep 8, 2017 · 19 comments
Closed

'v-model' directives aren't supported on <Input> elements? #181

thearabbit opened this issue Sep 8, 2017 · 19 comments

Comments

@thearabbit
Copy link

I base iView.
I get error

image

@armano2
Copy link
Collaborator

armano2 commented Sep 8, 2017

@thearabbit can you paste here an error message?

@thearabbit
Copy link
Author

Thanks for you reply

[vue-language-server] 'v-model' directives aren't supported on <Input> elements.
Creates a two-way binding on a form input element or a component.
@thearabbit
Copy link
Author

The same with <Select ....>

@mysticatea
Copy link
Member

Thank you for this issue.

I could not reproduce it on this plugin. Also, the 2nd line doesn't seem the message this plugin generates. It might be the message of vue-language-server own.

@thearabbit
Copy link
Author

Excuse me, could advise fixing?

@armano2
Copy link
Collaborator

armano2 commented Sep 8, 2017

vetur is using eslint-plugin-vue@3.8.0 and vue-eslint-parser@1.1.0-7

and there was bug with this but it was solved

vuejs/vetur#303

@mysticatea
Copy link
Member

@thearabbit I'm guessing you are using vscode and vetur. As @armano2 mentioned, please open an issue on there. I'm not sure what happens in the vue-language-server.

@armano2
Copy link
Collaborator

armano2 commented Sep 8, 2017

i got confirmation from vetur team, they already upgraded version

https://github.com/vuejs/vetur/blob/master/server/package.json#L21
The fix will be released in next version, soon.

@thearabbit
Copy link
Author

Look great!
💯

@thearabbit
Copy link
Author

After update, still get error
image

My .eslintrc

{
    "extends": [
        "eslint:recommended",
        "plugin:vue/recommended" // or "plugin:vue/base"
    ],
    "parser": "vue-eslint-parser",
    "parserOptions": {
        "ecmaVersion": 2017,
        "sourceType": "module"
    },
    "rules": {
        "no-console": ["error"],
        "semi": ["error", "always"],
        "quotes": ["error", "single"]
        // override/add rules" settings here
        // "vue/valid-v-if": "error"
    }
}
@thearabbit thearabbit reopened this Sep 8, 2017
@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Sep 8, 2017

Hi @thearabbit, @octref will release new version soon. The current vetur version is 0.9.5.

@thearabbit
Copy link
Author

Oh, thanks again

@mysticatea
Copy link
Member

Could we close this issue?

@octref
Copy link
Member

octref commented Sep 24, 2017

Don't repro for me on latest.

@michalsnik
Copy link
Member

michalsnik commented Oct 8, 2017

Ok guys, I'm closing this issue. Feel free to reopen if you'll experience any problems, but if you don't get the error when running eslint from the console it's most likely an upstream issue, which should rather be addressed in vuetur repository.

@lovezyg
Copy link

lovezyg commented Sep 27, 2018

mycode is v-model="xx | myfilter "
It warn me, v-model' directives require the attribute value which is valid as LHS.
How to solve this problem?

@vitorvr
Copy link

vitorvr commented Oct 1, 2018

mycode is v-model="xx | myfilter "
It warn me, v-model' directives require the attribute value which is valid as LHS.
How to solve this problem?

Same here :(

@zaqisilverano
Copy link

mycode is v-model="xx | myfilter "
It warn me, v-model' directives require the attribute value which is valid as LHS.
How to solve this problem?

same here!

@armano2
Copy link
Collaborator

armano2 commented Dec 4, 2018

@lovezyg @zaqisilverano @vitorvr i made PR about this bug #699 and ticket #700

Please create new ticket next time, no one notice it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants