Nuxt 4 module author: Component slot prop types missing.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- nuxtjs, typescript
- 領域
- build-system, tooling
調査の方向性
リンクされている再現手順から始めて、npm run dev:prepare && npm run prepack を実行します。生成された dist/runtime/components/NavigationComponent.d.vue.ts と NavigationComponent.vue.d.ts を調べ、content スロットの data prop と NavigationComponent.vue の NavigationItem[] を比較します。生成された宣言がスロット prop の型を保持し、any を出力しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 4.2.1
- CLI Version: 3.30.0
- Nitro Version: 2.12.9
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
Public github repo:
https://github.com/juanpscotto/nuxt-4-module-starter-types-issue
Stackblitz:
In stackblitz wait until the project is setup. Or run this command npm run dev:prepare && npm run prepack if running locally.
Once it has finished check the dist/runtime/components/NavigationComponent.d.vue.ts file, the slot type is missing.
Additional context
There is one component NavigationComponent that has a named slot content with a data prop array of type NavigationItem[]. That type is carried over as any in both NavigationComponent.d.vue.ts and NavigationComponent.vue.d.ts files
NavigationComponent.vue:
NavigationComponent.d.vue.ts
Describe the bug
The slot props types are not being carried over to the generated .ts files of the .vue components. I expect the type of the data props to be recognized.
Logs
- 主要言語
- TypeScript
- スター
- 277
- フォーク
- 36
- 平均マージ
- 2時間 46分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nuxt/module-builder のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
nuxt/module-builder#801 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
nuxt/module-builder#764 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
nuxt/module-builder#754 ·
-
Conflict between folder structure in readme (src/runtime) and TypeScript config (src/module/runtime)対応中かも @dword-design が 138 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
nuxt/module-builder#749 ·
-
Tsdown/obuild migration再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nuxt/module-builder#726 · コメント 1 件 · リアクション 1 件 ·
nuxt/module-builder の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
equinor/prisma-decision-web#919 ·
メンテナーはふだん 1 日以内に返信
-
[DC] OneLogin sync imports a partial user list when an API request fails対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
bitwarden/directory-connector#1276 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
home-assistant/installer#324 ·
メンテナーはふだん 1 日以内に返信
-
Mondriaan
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
knaw-huc/textannoviz#733 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信