Upon using the code snippet below:
@Component({
props: {
value: String
},
mounted() {
//Do something with `bar`
this.bar = this.bar + " is now mounted";
}
})
export default class Foo extends Vue {
private bar : string = "This element";
}
An error appears in the TypeScript console, while the code executes without issues.
37:14 Property 'bar' does not exist on type 'Vue'.
05 | mounted() {
06 | //Do something with `bar`
07 | this.bar = this.bar + " is now mounted";
| ^
08 | }
09 | })