I got this error in a Quasar Framework app that had < script setup > without specifying language: < script lang="ts" setup >. Correcting the script tag eliminated the error.