-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
The new version in vscode will report an error, for example:Property 'XXXX' does not exist on type 'Vue'.Vetur(2339) #1242
Comments
vetur: version 0.18.1 is ok |
ME TOO |
I roll back to 0.18.1 |
Thx! Rollback solves the problem11:43, 25 апреля 2019 г., OldDream <notifications@github.com>:I roll back to 0.18.1
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
…-- Отправлено из мобильного приложения Яндекс.Почты
|
I roll back to 0.18.1 too |
rollback to 0.18.1 it work! |
the new vetur formatting (indentation) also doesnt work well :( otw rollback to 0.18.1 |
temporary solution: "vetur.experimental.templateInterpolationService": false |
Spend some time trying to figure out why all my .vue files where reporting (strange) errors all of the sudden. Also tried the temporary solution above... Rollback to 0.18.1 was the only thing that worked. |
You can also disable template formatting for HTML |
"vetur.experimental.templateInterpolationService": false works! thanks kinesias! |
Having same problem on all vue components ... vetur(2304) ... property value does not exist. |
Property '$route' does not exist on type 'CombinedVueInstance<Record<never, any> & Vue, object, object, object, Record<never, any>>'.Vetur(2339) |
thinks 0.18.1 is ok!! |
回到0.18.1后再把扩展自动更新关了,等扩展后续更新吧。 |
Please give a repro case. Like paste your actual code here. Not a picture. |
|
@aphofstede Reported upstream issue vuejs/vue#9935 In the future please create new issues instead of appending to a different issue, thanks. |
Ah, I thought you specifically asked for a repro case here. Thanks for investigating! 👍 |
@RyannGalea Yes. When using Vue class components, methods go inside the class, not in the component object. Example: export default class YourClass extends Vue {
toggleMenu () {
....
}
closeMenu () {
....
}
} |
This is still happening even on 0.18.1. I created an interface for an object but Vetur is still displaying an error interface tableRow {
name: string,
message: string
}
interface TableData {
columnTitles: Array<string>,
rows: Array<TableRow>
} export default class Bookings extends Vue {
tableData!: Array<TableData>
mounted () {
// error: Property 'rows' does not exist on type 'TableData[]'.Vetur(2339)
this.tableData.rows.push({
name: 'Jay',
message: 'Using TypeScript in Vue is really frustrating'
})
}
} |
Had to disable |
@octref This seems to still be a problem in vetur 0.22.2. The upstream issue is still open and the PR submitted upstream was rejected with a statement that it works in typescript >=3.5 anyway. So, is vetur using old, bundled typescript (it seems so here)? In SublimeText, where I'm using latest vue-language-server 0.0.60, it actually works fine, but not in vetur. In SublimeText I'm getting this info in the console:
so the one I've installed in my project. In Vetur, I see So easy fix? Update bundled typescript? Or is there a way to use one from the project? |
@rchl You can upgrade to 0.22.3: https://github.com/vuejs/vetur/releases/tag/v0.22.3 |
Still have the issue with nuxt components ! |
@lvaroqui feel free to post your component somewhere for someone to look. Sometimes you need to explicitly annotate things like |
Encountered this just now. Turns out the Vetur component needed to be reloaded and the error went away, but the usual notification icon on the vscode sidebar didn't display (had to check the Extensions page on a hunch). Might be a vscode bug? |
It does it again. Current version 0.28 |
Please turn off |
What about this still happening inside the script? |
After upgrading the new version of vetur in vscode today, every page will report an error, for example:Property 'XXXX' does not exist on type 'Vue'.Vetur(2339)
But I don't use typescript
The text was updated successfully, but these errors were encountered: