Skip to content

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

Open
@NonSpicyBurrito

Description

@NonSpicyBurrito

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions