TS1205 Re-exporting in /src/authentication/azureTokenCredentials/index.ts:7:10
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- azure, typescript
- Domaine
- authentication
Piste de recherche
Start at src/authentication/azureTokenCredentials/index.ts:7 and inspect the related type declaration in ITokenCredentialAuthenticationProviderOptions. Run npm run build with isolatedModules enabled and confirm the package builds without the TS1205 error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Bug Report
Prerequisites
- Can you reproduce the problem?
- Are you running the latest version?
- Are you reporting to the correct repository?
- Did you perform a cursory search?
For more information, see the CONTRIBUTING guide.
Description
/src/authentication/azureTokenCredentials/index.ts:7:10
Console Errors: no
Screenshots:
Steps to Reproduce
import {Client, ClientOptions} from "@microsoft/microsoft-graph-client";
import {
TokenCredentialAuthenticationProvider
} from "@microsoft/microsoft-graph-client/src/authentication/azureTokenCredentials";
import {ClientSecretCredential} from "@azure/identity";
export class MSGraphClient {
public static client: Client;
public static init() {
const tenantID = process.env.MSGRAPH_TENANT_ID,
clientID = process.env.MSGRAPH_CLIENT_ID,
clientSecret = process.env.MSGRAPH_CLIENT_SECRET;
let clientOptions: ClientOptions = {
authProvider: new TokenCredentialAuthenticationProvider(
new ClientSecretCredential(tenantID, clientID, clientSecret),
{scopes: ["https://graph.microsoft.com/.default"]}
),
};
MSGraphClient.client = Client.initWithMiddleware(clientOptions);
}
}
Expected behavior: no throw
Actual behavior: throw:
./node_modules/@microsoft/microsoft-graph-client/src/authentication/azureTokenCredentials/index.ts:7:10
Type error: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'.
5 | * -------------------------------------------------------------------------------------------
6 | */
> 7 | export { TokenCredentialAuthenticationProviderOptions } from "./ITokenCredentialAuthenticationProviderOptions";
| ^
8 | export { TokenCredentialAuthenticationProvider } from "./TokenCredentialAuthenticationProvider";
9 |
Error: Command "npm run build" exited with 1
Additional Context
running both on vercel and locally throws
Usage Information
Request ID - N/A
SDK Version - [SDK version you are using]
- Node (Check, if using Node version of SDK)
Node Version - 21.1.0
- Browser any
Browser Name - [The name of Browser that you are using for SDK]
Version - [The version of the browser you are using]
- Langage dominant
- TypeScript
- Étoiles
- 833
- Forks
- 240
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
-
Is anyone here? Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 réaction ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests? Ouvertestatus:waiting-for-triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 42/100
-
status:waiting-for-triage type:bug
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 commentaires · 1 réaction ·
-
status:waiting-for-triage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
Toutes les issues de microsoftgraph/msgraph-sdk-javascript
Issues similaires
-
Type/Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100