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

オープン
#321 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@oumoussa98 がすでに取り組んでいます。

2025年4月21日 から。

  • #334 @oumoussa98 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
devtools, frontend

調査の方向性

Reproduce the issue in the Vue SFC Playground using App.vue with script setup lang="ts", then compare its behavior with a newly created component and a .ts file. Trace the refresh-triggered type-checking path; done means the type error on '' satisfies number appears immediately without refreshing.

索引モデルが issue の本文から書いたものです。

説明

p2-edge-case
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).

主要言語
TypeScript
スター
1.1k
フォーク
222
平均マージ
2時間 10分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vuejs/repl のほかの issue

vuejs/repl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。