TS1205 Re-exporting in /src/authentication/azureTokenCredentials/index.ts:7:10
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- azure, typescript
- Domain
- authentication
Research direction
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.
Written by the indexing model from the issue text.
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]
- Dominant language
- TypeScript
- Stars
- 833
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Is anyone here? Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 reaction ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests? Openstatus:waiting-for-triage
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 comments · 1 reaction ·
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in microsoftgraph/msgraph-sdk-javascript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·