When I try to write SFC with <script setup>
but without <template>
, I get a warning in console [Vue warn] Component is missing template or render function
.
Is there any workaround?
Vuejs dev answers, that one can use empty <template>
in this case.