Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

What is the correct configuration for tsconfig.json?

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
nuxtjs, typescript, vscode

調査の方向性

まず tsconfig.json と参照されている .nuxt/tsconfig.json を確認し、次にビルドの TypeScript の動作を、Vue Volar plugin とその生成された .vue-global-types フォルダーが提供する型付けと比較します。ビルドと VS Code セッションを通じて不一致を再現します。対応している設定と、それによって生じる型付けの動作が plugin に依存せず一貫していれば完了です。

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

説明

I noticed that it is not typed correctly and when I do the build it produces a different output than when I open the vscode window which types by itself.

Actual configration tsconfig.json is there:

{
  "extends": "./.nuxt/tsconfig.json",
  "exclude": [
    "dist",
    "node_modules",
    "playground",
  ]
}
Updated

When opening a .vue file or restarting the TS server with the Vue Volar plugin, a .vue-global-types folder is created in node_modules, and thanks to its base definitions, typing works completely.

However, when building, I cannot rely on the Vue Volar plugin.

主要言語
TypeScript
スター
277
フォーク
36
平均マージ
4日 19時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

nuxt/module-builder のほかの issue

nuxt/module-builder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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