Error: Cannot find module '@azure/logger' from '\node_modules\@azure\identity\dist'
See original GitHub issueCurrent behavior:
Error: Cannot find module '@azure/logger' from ..\node_modules\@azure\identity\dist'
Desired behavior:
Under plugins/index.js
this statement should work
const { DefaultAzureCredential } = require("@azure/identity")
const { SecretClient } = require("@azure/keyvault-secrets")
Test code to reproduce
- create a sample cypress test add those 2 libraries
npm install @azure/keyvault-secrets
npm install @azure/identity
https://www.npmjs.com/package/@azure/keyvault-secrets
Versions
4.7.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error: Cannot find module '@azure/logger' from ... - GitHub
Using typescript, create the following azure.ts file. import { DefaultAzureCredential } from "@azure/identity" ...
Read more >Azure/Node.js Unaught exception: Error: Cannot find module ...
There is no 'ms' package defined either in my project dependencies or in the node_modules folder, so I'm assuming this is a Microsoft/Azure...
Read more >@azure/identity - npm
Provides credential implementations for Azure SDK libraries that can authenticate with Azure Active Directory. Latest version: 3.1.2, ...
Read more >Azure Identity client library for JavaScript | Microsoft Learn
The Azure Identity library provides Azure Active Directory (Azure AD) token authentication through a set of convenient TokenCredential ...
Read more >azure-identity - PyPI
The Azure Identity library focuses on OAuth authentication with Azure AD. It offers a variety of credential classes capable of acquiring an Azure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you have your problem solved? I am having the same issue when using typescript 🤔
But instead of plugin, I am using it as a command to get the token and do a login before each test.
It returns the error ‘@azure/logger’
@prma85 This is how I did, and it worked the way I want. under plugins -> index.js
later I created a command, under support, and called the task. You can’t use the keyVault function directly on your spec files. You need to use task for that.
I hope that helps. xD