[Vuejs]-Property 'query' does not exist on type 'Vue'

0👍

Add this line to your transfer.vue file

<script lang="ts">
    import { Component, Vue } from 'vue-property-decorator';
    import TransferPanel from './Transfer-Panel.vue';
        
    @Component({
        components: {
            TransferPanel
        }
    })
    export default class Transfer extends Vue {
      ...
      $refs!: {
        leftPanel: TransferPanel // TransferPanel interface should have query as a property
      }
      ...
    }
</script

Leave a comment