You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error while adding PnP Dragdrop control in the Teams toolkit SPFx webpart.
Is PnP controls supports SPFx web parts solutions created using Teams Toolkit?
Category
[ ] Bug
[ ] Question
Code:
import { DragDropFiles } from "@pnp/spfx-controls-react/lib/DragDropFiles";
private _getDropFiles = (files: any[]) => {
for (var i = 0; i < files.length; i++) {
console.log("Filename: " + files[i].name);
console.log("Path: " + files[i].fullPath);
}
}
{"Upload document..."}
{/* Specify the components to load where Drag and drop area should work */}
Version
Please specify what version of the library you are using: [ "@pnp/spfx-controls-react": "3.17.0" ]
node: v14.20.0
gulp CLI version: 2.3.0
microsoft/generator-sharepoint: 1.18.1
Thanks!
The text was updated successfully, but these errors were encountered:
From what I know, Teams Toolkit is creating a SPFx project with a specific version, nothing different than what you could create on your side with the original SPFx scaffolding.
However, the PnP Controls version 3.17.0 relies on SPFx version 1.18.2. You should update the PnP Control to the version of SPFx you're using.
I am getting below error while adding PnP Dragdrop control in the Teams toolkit SPFx webpart.
![image](https://private-user-images.githubusercontent.com/112081775/307680926-7342d6ca-5a7f-488c-a99e-93416c2c47a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjMyNTAsIm5iZiI6MTczOTU2Mjk1MCwicGF0aCI6Ii8xMTIwODE3NzUvMzA3NjgwOTI2LTczNDJkNmNhLTVhN2YtNDg4Yy1hOTllLTkzNDE2YzJjNDdhOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxOTU1NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNDM3NWM0YmQ5M2U5MDNhMTRkYWIwMGUyYmI1NWVjMTExZGM1NzIxYTE1NTQ4NTRhMWRhM2FiMDIzZDhkNmMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.eANrJZpKHVEqdwTnK-2tjNvvLB42TtlYr7tCuLhbN-g)
Is PnP controls supports SPFx web parts solutions created using Teams Toolkit?
Category
[ ] Bug
[ ] Question
Code:
import { DragDropFiles } from "@pnp/spfx-controls-react/lib/DragDropFiles";
private _getDropFiles = (files: any[]) => {
for (var i = 0; i < files.length; i++) {
console.log("Filename: " + files[i].name);
console.log("Path: " + files[i].fullPath);
}
}
{/* Specify the components to load where Drag and drop area should work */}
Version
Please specify what version of the library you are using: [ "@pnp/spfx-controls-react": "3.17.0" ]
node: v14.20.0
gulp CLI version: 2.3.0
microsoft/generator-sharepoint: 1.18.1
Thanks!
The text was updated successfully, but these errors were encountered: