Skip to content

Using with NestJS #28

@geraldyeo

Description

@geraldyeo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions