-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import TokenCredentialAuthenticationProvider
with ESM
#1377
Comments
TokenCredentialAuthenticationProvider
with ESMTokenCredentialAuthenticationProvider
with ESM
TokenCredentialAuthenticationProvider
with ESMTokenCredentialAuthenticationProvider
with ESM
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
The text was updated successfully, but these errors were encountered: