While utilizing Nuxt.js, I am using head() { }
method to configure SEO metadata.
However, when accessing computed properties within this method, Vetur displays the following message:
Property 'domain' does not exist on type 'CombinedVueInstance {...}>'.
import Vue from "vue";
export default Vue.extend({
head(){
const domain = this.domain;
return {};
},
computed: {
domain() {
return this.$route.params.domain || '';
}
}
});
Although the app is rendering properly on the server-side, I am puzzled by the presence of these errors in VSCode.