Unable to use Identity in react-native #31713
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
In our Node.js application, we are utilizing the Azure Identity. However, upon running the server, I encounter the following issue within the Azure Identity package:
`/node_modules/@azure/identity/dist/index.js: child_process could not be found within the project or in these directories:
node_modules
../../node_modules
15 | var promises = require('fs/promises');
16 | var https = require('https');
I've located the file responsible for the error within the node_modules directory. This file contains the following code at the beginning:
`'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var msalCommon = require('@azure/msal-node');
var logger$o = require('@azure/logger');
var abortController = require('@azure/abort-controller');
var coreUtil = require('@azure/core-util');
var coreClient = require('@azure/core-client');
var coreRestPipeline = require('@azure/core-rest-pipeline');
var coreTracing = require('@azure/core-tracing');
var fs = require('fs');
var os = require('os');
var path = require('path');
var promises = require('fs/promises');
var https = require('https');
var child_process = require('child_process');
var crypto = require('crypto');
var util = require('util');
var open = require('open');
`
Screenshots
The text was updated successfully, but these errors were encountered: