Subscribe on changes!

cannot use "as" in <template>

avatar
Jul 14th 2022

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)

image

在 StackBlitz 报错 (in StackBlitz)

image image

System Info

No response

Any additional comments?

No response

avatar
Jul 14th 2022
avatar
Jul 14th 2022

duplicate of #5764

avatar
Jul 14th 2022

This is a bug. It was raised three months ago, and there is no intention to solve it until now.

avatar
Jul 14th 2022

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