Skip to content

spfx 1.6.0 compatibility error (context field incompatible) #32

@deanbot

Description

@deanbot

Greetings,

It looks like it's time to update @microsoft packages for 1.6.0 ("@microsoft/sp-webpart-base": "1.6.0") compatibility... IWebPartContext has changed.

Using PropertyFieldPicturePicker when i specify context i.e.:

PropertyFieldPicturePicker('id', {
...props,
context: this.context
})

I get the following error when serving.:

error TS2345: Argument of type '{ label: string; initialValue: string; readOnly: true; previewImage: true; allowedFileExtensions:...' is not assignable to parameter of type
'IPropertyFieldPicturePickerProps'.
[15:38:10] [tsc] Types of property 'context' are incompatible.
[15:38:10] [tsc] Type 'WebPartContext' is not assignable to type 'IWebPartContext'.[15:38:10] [tsc] Types of property 'httpClient' are incompatible.
[15:38:10] [tsc] Type 'HttpClient' is not assignable to type 'HttpClient'. Two different types with this name exist, but they are unrelated.
[15:38:10] [tsc] Types have separate declarations of a private property '_fetchProvider'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions