Skip to main content
Tweeted twitter.com/StackSharePoint/status/1616405211710464002
Became Hot Network Question
reformatted
Source Link
Asad Refai
  • 6k
  • 8
  • 35
  • 57

I have an SPFX solution where I am trying to use Graph API. I tried installing 'npm install @pnp/logging @pnp/core @pnp/queryable @pnp/graph --save'

Now, while using 'import { graph } from "@pnp/graph"' I am getting below error. '"@pnp/graph"' has no exported member named 'graph'.

'"@pnp/graph"' has no exported member named 'graph'.

Please guide me if anything I am missing here..

I have an SPFX solution where I am trying to use Graph API. I tried installing 'npm install @pnp/logging @pnp/core @pnp/queryable @pnp/graph --save'

Now, while using 'import { graph } from "@pnp/graph"' I am getting below error. '"@pnp/graph"' has no exported member named 'graph'.

Please guide me if anything I am missing here..

I have an SPFX solution where I am trying to use Graph API. I tried installing 'npm install @pnp/logging @pnp/core @pnp/queryable @pnp/graph --save'

Now, while using 'import { graph } from "@pnp/graph"' I am getting below error.

'"@pnp/graph"' has no exported member named 'graph'.

Please guide me if anything I am missing here..

Source Link
Kailash Sahoo
  • 497
  • 4
  • 14
  • 36

Unable to resolve "@pnp/graph"' has no exported member named 'graph' in SPFX solution

I have an SPFX solution where I am trying to use Graph API. I tried installing 'npm install @pnp/logging @pnp/core @pnp/queryable @pnp/graph --save'

Now, while using 'import { graph } from "@pnp/graph"' I am getting below error. '"@pnp/graph"' has no exported member named 'graph'.

Please guide me if anything I am missing here..