While working in Visual Studio Code, I came across the following code snippet:
<script lang="ts" setup>
const parseCSV = () => {
// Code omitted for brevity
}
}
</script>
<template>
<button @click="parseCSV">Parse</button>
</template>
As I was editing, I noticed a squiggly line under parseCSV
with the following message:
Property 'parseCSV' does not exist on type '{}'.ts(2339)
This prompted me to question the reason behind this. Can you shed some light?