Closed praveenhooda closed 1 year ago
And the Error I get is Type 'import("/node_modules/@microsoft/sp-component-base/dist/index-internal").BaseComponentContext' is not assignable to type 'import("/node_modules/@pnp/spfx-controls-react/node_modules/@microsoft/sp-component-base/dist/index-internal").BaseComponentContext'. Types have separate declarations of a private property '_serviceScope'.ts(2322) IDynamicFormProps.d.ts(9, 5): The expected type comes from property 'context' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'
Closing it since it was answered on another post!
context: BaseComponentContext; is declared as property of MyComponent which is rendering DynamicForm as below <DynamicForm context={props.context} listId={"List ID"}
Please suggest