Skip to content

Cannot build production version with using Ant Design #471

@Seasle

Description

@Seasle

After updating to 7.3.7 (#470), we get the following message when building in production:

Interface 'InputNumberProps<T>' incorrectly extends interface 'Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange" | "onInput">'.
  Types of property 'max' are incompatible.
    Type 'T | undefined' is not assignable to type 'string | number | undefined'.
      Type 'T' is not assignable to type 'string | number | undefined'.
        Type 'ValueType' is not assignable to type 'string | number | undefined'.
          Type 'null' is not assignable to type 'string | number | undefined'.

Environment:

  • React: 17.0.2
  • Ant Design: 4.22.8
  • TypeScript: 4.7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions