Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spfx 1.6.0 compatibility error (context field incompatible) #32

Open
deanbot opened this issue Sep 24, 2018 · 3 comments
Open

spfx 1.6.0 compatibility error (context field incompatible) #32

deanbot opened this issue Sep 24, 2018 · 3 comments

Comments

@deanbot
Copy link

deanbot commented Sep 24, 2018

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'.
@berndverhofstadt
Copy link

Same issue for the new released SPFx 1.7.0

@berndverhofstadt
Copy link

I found what I needed on the dev branch https://sharepoint.github.io/sp-dev-fx-property-controls/
npm i @pnp/spfx-property-controls@next -S

@rroa
Copy link

rroa commented Aug 30, 2019

@berndverhofstadt could you describe how you updated the package.json so it uses new references? I replaced package names and bumped versions but it was not good enough to make the linter happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants