-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
Describe the bug
When I have a template that is not using the class style of component, the parser complains about accessing data from either methods or computed properties. It does not complain when I convert the template to using vue-property-decorator
To Reproduce
Steps to reproduce the behavior:
- Make a component with a script section like
<script lang="ts"> import Vue from 'vue' export default Vue.extend({ name: 'Test', data() { return { str: 'Hello world' } }, computed: { getStr(): string { return this.str } } }) </script>
- Run
nuxt-ts dev - See error
Expected behavior
I should be able to access the properties on data from either the computed or methods properties without using vue-property-decorator
Metadata
Metadata
Assignees
Labels
No labels
