PNP PeoplePicker类型' webpartcontext'缺少类型' basecomponentContext&#x27的以下属性。
我在我的SPFX React WebPart解决方案中使用SPFX PeoplePicker Control,但是PeoplePicker Control遇到以下错误。
错误 : 类型“ WebPartContext”缺少“ BaseComponentContext”类型的以下属性:_ isserved fromlocalhost,Isserved fromlocalhostts(2739) ipeoplepicker.d.ts(14,5):预期类型来自属性“上下文”,该属性在此处声明在类型'intinsiCattributes& amp; IntinsicClassAttributes< peoplepicker> & Readonly< ipeoplepickerprops> & Readonly< ...>'
请注释&让我知道是否需要任何其他信息。
在解决方案中,我使用的是SPFX 1.11.0版本,并尝试了不同的SPFX 1.10.0版本,但问题保持不变。
I am using spfx Peoplepicker control in my spfx react webpart solution but Peoplepicker control encountering the below error.
Error :
Type 'WebPartContext' is missing the following properties from type 'BaseComponentContext': _isServedFromLocalhost, isServedFromLocalhostts(2739)
IPeoplePicker.d.ts(14, 5): The expected type comes from property 'context' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<PeoplePicker> & Readonly<IPeoplePickerProps> & Readonly<...>'
please comment & let me know if any additional information needed.
In the solution i am using spfx 1.11.0 version and tried different spfx 1.10.0 version but issue remains same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@murb 我也遇到同样的问题。我将发布我的解决方案中的一些代码。
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
}
@murb I am experiencing this same issue. I will post some code from my solution.
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
}