TS1205 Re-exporting in /src/authentication/azureTokenCredentials/index.ts:7:10
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure, typescript
- Lĩnh vực
- authentication
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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]
- Ngôn ngữ chính
- TypeScript
- Star
- 833
- Fork
- 240
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
Is anyone here? Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 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? Đang mởstatus:waiting-for-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
-
status:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 bình luận · 1 reaction ·
-
status:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của microsoftgraph/msgraph-sdk-javascript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·