-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot find module 'node:os' in @azure/logger dependency of @azure/identity #29569
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Hiya @rithvikp1998 - thanks for reaching out! I tried to reproduce this on Node 20 and have been unable to. Here's what I did (condensed to a small one-liner for copy-pasteability):
I see that it successfully loaded identity and it prints out Are you sure you are using node 20? Could you try this snippet out and see if it works for you? If it fails, could you tell me what is the output of running Thanks so much! |
Hi @rithvikp1998. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
Thanks for looking into it! I tested the command you gave, and it is working in my local machine with Node 20. So, I retried running it in our ADO pipeline and weirdly it is still failing with the same error. The Node install task in the pipeline is claiming it successfully installed Node 20 before running our code, but maybe there is something going wrong in it. I'll log the node version in the pipeline and see what version is getting installed. |
Sounds good - going to mark this resolved for now but feel free to unresolve if you still suspect an issue with the SDK |
Hi @rithvikp1998. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @rithvikp1998, since you haven’t asked that we |
Describe the bug
Using the latest version of @azure/identity in node js code is breaking with the error:
Cannot find module 'node:os'
. From the stack trace it looks like the bug is coming from dependency of the identity package on @azure/logger package. Full stack trace:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Package should work without failing
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: