Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NonSpicyBurrito opened this issue Feb 18, 2025 · 0 comments

Comments

@NonSpicyBurrito
Copy link

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

@edison1105 edison1105 transferred this issue from vuejs/core Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants