[bug]: Outdated typescript dependency

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

メンテナーはふだん 6 日以内に返信

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

評価

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

調査の方向性

Start with the failing expression in admin/src/components/Hello.tsx and inspect the package's TypeScript dependency declaration. Run the plugin build with the reported environment; done means the outdated dependency no longer produces the shown type error and the build passes.

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

説明

issue: bug
What version of @strapi/sdk-plugin are you using?
  • PNPM: 10.19.0
  • Node: 22.21.0
  • @strapi/plugin-sdk: 5.3.2
  • Project typescript: 5.9.3
What's Wrong?

Due to the fact that this package uses an old version of typescript, types are outdated and produces types error at build time.

To Reproduce

admin/src/components/Hello.tsx

      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
      // @ts-ignore - @strapi/sdk-plugin uses an old typescript version
      const dynamiczoneHeaderTitle = dynamiczoneHeader.querySelector<HTMLSpanElement>('span:first-child')?.textContent.trim()
      //                                                                                                   ^^^^^^^^^^^ Object is possibly null
Expected Behaviour

Build should pass

主要言語
TypeScript
スター
24
フォーク
13
平均マージ
5日 3時間
マージ済み PR(30日)
5

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

strapi/sdk-plugin のほかの issue

strapi/sdk-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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