close
Skip to content

Unused '@ts-expect-error' directive on npm build #72881

@SirLouen

Description

@SirLouen

Description

When building lately (npm run build), I'm getting these errors

packages/core-data/src/utils/crdt-blocks.ts:13:1 - error TS2578: Unused '@ts-expect-error' directive.

13 // @ts-expect-error No exported types.
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

packages/core-data/src/utils/crdt.ts:9:1 - error TS2578: Unused '@ts-expect-error' directive.

9 // @ts-expect-error No exported types.

Wondering if this has already been reported. I've been searching, but I could not find anything.

Step-by-step reproduction instructions

Do a regular build: npm run build

Screenshots, screen recording, code snippet

Image

Environment info

=== Environment

  • WordPress: 6.9-beta2-61080-src
  • PHP: 8.2.29
  • Server: nginx/1.29.3
  • Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
  • Browser: Chrome 141.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.3
  • MU Plugins: None activated
  • Plugins:
    • Gutenberg 22.0.0-rc.1
    • Template Part Extension 1.0.0
    • Test Reports 1.2.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] Build ToolingIssues or PRs related to build tooling

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions