Using with NestJS

Đang mở
#28 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
backend

Hướng nghiên cứu

Start by checking the SDK's published dist/index.d.ts and its package exports, then compare them with the TypeScript import shown in the issue. Reproduce the errors in a NestJS v8 project using the SDK and inspect the reported Node type declaration error. Done means the SDK can be imported and used from TypeScript in NestJS without these compilation errors, with a documented working example.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I'm getting some errors trying to use the SDK lib in NestJS (v8)

[4:01:21 PM] File change detected. Starting incremental compilation...

node_modules/@types/node/constants.d.ts:12:5 - error TS2309: An export assignment cannot be used in a module with other exported elements.

12     export = exp;
       ~~~~~~~~~~~~~

src/app/feature-flags/feature-flags.service.ts:1:26 - error TS2306: File '/Users/geraldyeo/Code/silver-davinci/node_modules/@harnessio/ff-nodejs-server-sdk/dist/index.d.ts' is not a module.

1 import * as harness from '@harnessio/ff-nodejs-server-sdk';
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[4:01:21 PM] Found 2 errors. Watching for file changes.

Any examples on how to use with TS or Nest?

Ngôn ngữ chính
TypeScript
Star
6
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của harness/ff-nodejs-server-sdk

Tất cả issue của harness/ff-nodejs-server-sdk

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.