title: Property 'x' does not exist on type '{toggle():void}'
body: <p>I am pretty new to typescript. Now, I have setup nuxt(bridge with typescript) app and created a component named menuIcon as such;</p>
  <pre><code>  &lt;div class=&quot;container&quot;&gt;
  
  
      &lt;div class=&quot;menu-icon&quot; :class=&quot;active ? 'change' : ''&quot; @click=&quot;toggle&quot;&gt;
        &lt;div class=&quot;bar1&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;bar2&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;bar3&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div
        class=&quot;overlay&quot;
        :class=&quot;active ? 'overlay-slide-right' : 'overlay-slide-left'&quot;
        @click=&quot;toggle&quot;
        id=&quot;overlay&quot;
      &gt;
      &lt;!-- html contents here --&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script lang=&quot;ts&quot;&gt;
  
  
  export default {
    data(){
      const active:boolean=false;
      return{
          active
      }
    },
    methods: {
      toggle():void{
         this.active= !this.active
      },
    },
  };
  &lt;/script&gt;
  &lt;style scoped&gt;
  /*css contents here*/
  }
  &lt;/style&gt;
  </code></pre>
  <p>It is working in browser but I am seeing the following error in my terminal.</p>
  <pre><code>TS2339: Property 'active' does not exist on type '{ toggle(): void; }'.
      41 |   methods: {
      42 |     toggle():void{
    &gt; 43 |        this.active= !this.active
         |             ^^^^^^
      44 |     },
      45 |   },
      46 | };
  
  ERROR in components/MenuIcon.vue:43:27
  TS2339: Property 'active' does not exist on type '{ toggle(): void; }'.
      41 |   methods: {
      42 |     toggle():void{
    &gt; 43 |        this.active= !this.active
         |                           ^^^^^^
      44 |     },
      45 |   },
      46 | };
  </code></pre>
  <p>Apparently it's something about typing but I am not sure how to fix it. I would very much appreciate anyone to shed light on me about the issues. Thanks in advance.</p>