[bug]: Outdated typescript dependency

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
24
Forks
13
Avg merge
5d 3h
Merged PRs (30d)
5

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from strapi/sdk-plugin

All issues in strapi/sdk-plugin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.