repl icon indicating copy to clipboard operation
repl copied to clipboard

SFC Playground does not report type errors in `App.vue` with `lang="ts"` until refresh

Open NonSpicyBurrito opened this issue 9 months ago • 0 comments

Vue version

Any version available on Playground

Link to minimal reproduction

https://play.vuejs.org

Steps to reproduce

  1. Open a fresh Vue SFC Playground.
  2. Modify the starter code of App.vue as follows:
- <script setup>
+ <script setup lang="ts">
import { ref } from 'vue'

const msg = ref('Hello World!')
+ '' satisfies number
</script>

What is expected?

Type error to be reported on line '' satisfies number.

What is actually happening?

Type error does not get reported, until refreshing the playground.

System Info


Any additional comments?

The issue seems to specifically affect App.vue, as it is not reproducible with the same steps but on a newly created component (or a .ts file).

NonSpicyBurrito avatar Feb 18 '25 03:02 NonSpicyBurrito