nuxt: Computed Property this IntelliSense broken
Version
Reproduction link
https://github.com/stefnotch/temp-nuxt-starter-app
Steps to reproduce
- Create a new Nuxt project
- Optionally upgrade nuxt to version v2.6.1
- Type the following in a component
computed: {
test() {
return "" + this. // HERE!!
}
}
Alternatively, clone the repo and take a look at index.vue
What is expected ?
Various IntelliSense suggestions such as this.$data, this.$emit, this.$nuxt should show up
What is actually happening?
None of them show up

This doesn’t work either:
test2: function( ) {
return "" + this. // HERE!!
}
Additional comments?
In methods: { someMethod() {} }, the IntelliSense for this works as expected.
I also have issues with this.$router not showing up in the methods: {}, but that’s a different issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (4 by maintainers)
It appears that this issue does not exist anymore. As such, I can close it.
I think Vetur is providing Auto completion / IntelliSense without readading Vue typings, it’s probably bound to the extension core. So i’m afraid you’ll not be able to have everything working with Nuxt.
EDIT : Unless you want tro give a try to TypeScript, you’ll also be able to have type checking this way.
I have opened an issue in Vetur.In Nuxt project,Auto completion/IntelliSense is not working properly