Forum Discussion
Maggan Wåhlin
Jan 25, 2018Iron Contributor
PnPJS graph package problem in SharePoint Framework
Hi,
I´m trying to use the new graph-package from PnP (@pnp/graph), and get the following error when running the code in the SP workbench:
Uncaught (in promise) TypeError: Cannot read prop...
Dhaval Shah
Mar 15, 2018Copper Contributor
Hi Magan,
I am facing the same issue with the old pnp framework as well as the new version of the pnp framework.
Were you able to find the resolution ?
import pnp from "pnp";
pnp.graph.v1.groups.get().then((result)=>{
console.log(result);
}).catch((error)=>{
console.log(error);
})
I have also created a similar issue over https://github.com/pnp/pnp/issues/48
https://github.com/pnp/pnp/issues/48