We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[ ] Enhancement
[X] Bug
[ ] Question
Please specify what version of the library you are using: [1.19.0]
I'm trying to use the FolderPicker control as it's documented, but the imports are not working.
I'm trying to import the component as it's documentend:
import { FolderPicker, IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker";
But with that i get an error: '...has no exported member 'FolderPicker'" and "... has no exported member 'IFolder'"
All I did was installing the package in a recently created SPFX Reac app and trying to import the controls.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Sorry, something went wrong.
Hi @jorgesoprani! Thank you for reporting this! Yes, it's a bug.
We will take care of it.
In a meantime, you can use the imports like that:
import FolderPicker from '@pnp/spfx-controls-react/lib/controls/folderPicker/FolderPicker'; import { IFolder } from '@pnp/spfx-controls-react/lib/services/IFolderExplorerService';
fix of #614
33b5eae
Starting v 1.20.0 you'll be able to use:
import FolderPicker from '@pnp/spfx-controls-react/lib/controls/folderPicker/FolderPicker'; import { IFolder } from '@pnp/spfx-controls-react/lib/FolderPicker';
And later, in v2, it will be fixed completely.
No branches or pull requests
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [1.19.0]
Expected / Desired Behavior / Question
I'm trying to use the FolderPicker control as it's documented, but the imports are not working.
Observed Behavior
I'm trying to import the component as it's documentend:
But with that i get an error: '...has no exported member 'FolderPicker'" and "... has no exported member 'IFolder'"
Steps to Reproduce
All I did was installing the package in a recently created SPFX Reac app and trying to import the controls.
The text was updated successfully, but these errors were encountered: