-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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_modules\call-bind\index.js' #16882
Comments
Hello @andreehultgren! I’ll be doing my best to help you. Please give us some time to catch up. I’ll come back with an answer between today and tomorrow. |
Hello again, @andreehultgren ! I do not see the error you see. I want to understand what I’m doing differently. Here’s what I did:
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
+ import { DefaultAzureCredential } from "@azure/identity";
+ let credential = new DefaultAzureCredential()
+ console.log({credential});
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
This happens because the If I switch to the import { InteractiveBrowserCredential } from "@azure/identity";
let credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>"
}) Please let me know what I’m doing differently! Also, please read our docs in regards to using Identity in the browser: Authenticating a user account interactively in the browser . Any feedback appreciated. I’m here to help. |
It seemed like the installation of one dependency (call-bind) was faulty and resulted in the file I managed to resolve this issue by wiping NodeJS and all dependencies on the system. The file now exists and the |
@andreehultgren Thank you for letting us know! Please remember you’re welcome here anytime. Good luck with your projects! |
Review request for Microsoft.BotService to update version stable/2021-03-01 (Azure#16882) * fix api * add name property * update OP Channels_ListWithKeys * update type * mark the parameter value as x-ms-secret * allow null in value * ' * sync changes to 2021-05-01-preview Co-authored-by: FAREAST\hond <[email protected]>
Describe the bug
Reproducing the example at https://www.npmjs.com/package/@azure/identity#user-content-examples does not work. The compiler crashes.
To Reproduce
Run the following commands in order
Then add attempt to create a DefaultAzureCredential
Then run
Expected behavior
The following error should show up
Note
Running
yarn add call-bind
does not solve the issue.The text was updated successfully, but these errors were encountered: