Skip to content

[bug]: Outdated typescript dependency #99

@ChristopheCVB

Description

@ChristopheCVB

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions