Open onionhammer opened 11 months ago
Thanks for reporting @onionhammer! I don't think we are doing a great job at ESM for the current version of the JS Graph client. We are currently building a v4 of the library based on https://aka.ms/kiota and its dependencies and we believe it'll be a lot better.
That being said, it's not a great experience currently and we'll see how big of a change this might be. @koros please have a look at reproducing.
Related to #1385
Hi guys, do we have any update on this issue? I have the same problem, I am using version 3.0.7 thanks
Hi all, just sharing a quick workaround that worked for me while waiting for further updates here
import { TokenCredentialAuthenticationProvider } from "@microsoft/microsoft-graph-client/lib/src/authentication/azureTokenCredentials/TokenCredentialAuthenticationProvider.js";
Bug Report
Unable to use
TokenCredentialAuthenticationProvider
with ESMPrerequisites
For more information, see the
CONTRIBUTING
guide.Description
Importing
TokenCredentialAuthenticationProvider
and running in node 18 fails.Console Errors:
Screenshots: [If applicable, add screenshots to help explain your problem]
Steps to Reproduce
@microsoft/microsoft-graph-client
type: "module"
in package.jsonnode index.js
Expected behavior: The node application should run
Actual behavior: Errors with
SDK Version -3.0.5