Skip to content

Unexpected errors #143

@DonatasBrazionis

Description

@DonatasBrazionis

Using versions in package.json:

"@simplr/react-forms": "^4.3.3"
"@simplr/react-forms-dom": "^4.3.3"

Error:

[17:33:55] ERROR TS: D:/Projects/Admin/node_modules/@simplr/react-forms-dom/components/radio-group.d.ts(23,22): error TS2417: Class static side 'typeof RadioGroup' incorrectly extends base class static side 'typeof BaseDomField'.
  Types of property 'childContextTypes' are incompatible.
    Type 'ValidationMap<RadioGroupChildContext>' is not assignable to type 'ValidationMap<FieldChildContext>'.
      Types of property 'FieldId' are incompatible.
        Type 'Validator<RadioGroupChildContext> | undefined' is not assignable to type 'Validator<FieldChildContext> | undefined'.
          Type 'Validator<RadioGroupChildContext>' is not assignable to type 'Validator<FieldChildContext> | undefined'.
            Type 'Validator<RadioGroupChildContext>' is not assignable to type 'Validator<FieldChildContext>'.
              Types of parameters 'object' and 'object' are incompatible.
                Type 'FieldChildContext' is not assignable to type 'RadioGroupChildContext'.
                  Property 'RadioGroupOnChangeHandler' is missing in type 'FieldChildContext'.
[17:33:55] ERROR TS: D:/Projects/Admin/node_modules/@simplr/react-forms-dom/components/radio.d.ts(18,22): error TS2417: Class static side 'typeof Radio' incorrectly extends base class static side 'typeof BaseContainer'.
  Types of property 'contextTypes' are incompatible.
    Type 'ValidationMap<RadioParentContext>' is not assignable to type 'ValidationMap<BaseContainerParentContext>'.
      Types of property 'FormId' are incompatible.
        Type 'Validator<RadioParentContext> | undefined' is not assignable to type 'Validator<BaseContainerParentContext> | undefined'.
          Type 'Validator<RadioParentContext>' is not assignable to type 'Validator<BaseContainerParentContext> | undefined'.
            Type 'Validator<RadioParentContext>' is not assignable to type 'Validator<BaseContainerParentContext>'.
              Types of parameters 'object' and 'object' are incompatible.
                Type 'BaseContainerParentContext' is not assignable to type 'RadioParentContext'.
                  Type 'BaseContainerParentContext' is not assignable to type 'RadioGroupChildContext'.
                    Property 'RadioGroupOnChangeHandler' is missing in type 'BaseContainerParentContext'.

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