<script setup>
import { defineProps, computed } from '@vue/runtime-core'
defineProps({
foo: Array,
})
const length = computed(() => {
return foo.length // foo is not defined
})
</script>
In this block which is quite self-explained, when I try to reach props variable in computed, an error throws like 'foo is not defined'