I created a vue component with TypeScript, and I\'m getting this error in data() and in methods():
Property \'xxx\' does not exist
This seems to be inexplicably caused by using this.$store to compute the return value of profilePath, combined with the unspecified return type on its declaration.
One workaround is to specify the return type as string:
profilePath: function(): string {
verified with npm run serve and npm run build, using Vue CLI 3.7.0 on macOS Mojave
GitHub demo