I am attempting to retrieve data from a Google spreadsheet using axios in Vue3 & TypeScript for the first time.
This is my initial experience with Vue3, as opposed to Vue2.
Upon running the code, I encountered this error: Property 'items' does not exist on type 'BiblioAll'
Below is my code snippet
<template>
/// My template
</template>
<script lang="ts">
import { Vue } from "vue-class-component";
export default class BiblioAll extends Vue {
data() {
return{
items: {} as any
}
}
created(){
this.axios.get("https://spreadsheets.google.com/feeds/list/1ZTO87yKX4NkQ7I641eL01IcGzlnugdK_Nkou5cSy1kQ/1/public/values?alt=json")
.then(response => (this.items = response))
}
}
}
</script>
<style scoped>
/// Styles
</style>
Any suggestions on how to resolve this issue?
Thank you!