cannot use "as" in <template>
Vue version
3.2.37
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-jjfqgw?file=vite.config.js,src%2FApp.vue&terminal=dev
Steps to reproduce
<script lang="tsx" setup>
编译出错 (Compile error)
<script lang="ts" setup>
编译正常 (Compile successfully)
What is expected?
jsx 可以正常编译 (Compile successfully with jsx)
What is actually happening?
在本地报错 (in local)
在 StackBlitz 报错 (in StackBlitz)
System Info
No response
Any additional comments?
No response
Hope this can help you https://github.com/vuejs/core/issues/5764
This is a bug. It was raised three months ago, and there is no intention to solve it until now.
https://github.com/vuejs/core/issues/5764#issuecomment-1113608632