Something that works to quit the error is simply remove lang="ts" from script setup declaration. But obviously it's not the best solution.