Using with NestJS

Aperta
#28 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
TypeScript
Stelle
6
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di harness/ff-nodejs-server-sdk

Tutte le issue di harness/ff-nodejs-server-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.