I'm currently implementing front end development using vue, and working with the following script:
<script>
import PostService from '../PostService';
export default {
name: 'Post',
data: function() {
return {
posts: [],
text: ''
};
},
methods: {
async CreatePost() {
await PostService.CreatePost(this.text);
this.post = await PostService.GetPosts(); **//How to get error here?**
}
}
};
</script>
One issue I am facing is constantly misspelling variables (like post instead of posts), however, vue does not provide any error or warning for such mistakes. How can I configure vue to detect these errors?