Skip to content

TS2411: Property '[FONT_SIZE]' of type 'FontSizeCommand' is not assignable to 'string' index type 'Command' #404

@sergey-morenets

Description

@sergey-morenets

Hi

We have Angular project with Ckeditor 5 dependency. Everything was working fine if we used the following versions:

    "@ckeditor/ckeditor5-angular": "^7.0.1",
    "@ckeditor/ckeditor5-core": "^40.2.0"

Once we upgraded "@ckeditor/ckeditor5-core" (and related Ckeditor dependencies) to 41.0.0 we got multiple errors during build, for example:

X [ERROR] TS2411: Property '[FONT_SIZE]' of type 'FontSizeCommand' is not assignable to 'string' index type 'Command'. [plugin angular-compiler]

    node_modules/@ckeditor/ckeditor5-font/src/augmentation.d.ts:53:8:
      53 │         [FONT_SIZE]: FontSizeCommand;

Angular: 17.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending:feedbackThis issue is blocked by necessary feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions