I am building an SPFx Application Customizer for a Powell365 project, and trying to have it use custom properties from the current site collections's property bag.
I already managed to get these properties in SP PowerShell, using the code linked below. How can I access those values in my SPFx Applicaton Customizer, and what are the modules I need to import?
The code from PnP JS - SP Webs throws a Type error:
"Object does not support the property or method "from".
Any support will be appreciated! Please let me know if I can supply more information.
import { sp } from "@pnp/sp";
sp.web.select("AllProperties").expand("AllProperties").get().then(success=>{[...]},error=>
{[...]})
PowerShell Script: SharePoint Online: Get-Set Property Bag Values with PowerShell.