I want to fetch data from Graph from the new beta versions, specifically the user profiles. When specifying the following code
let provider = new SharePointProvider(this.context);
provider.graph = BetaGraph.fromGraph(provider.graph);
Providers.globalProvider = provider;
I get the following error in the WebPart:
TypeError: Cannot read property 'client' of undefined at Function.fromGraph
Any advise? Do I need to specify the graph context object to connect to the beta endpoint somehow?