Skip to content

Using with Node 20 #79

@tatiananeda

Description

@tatiananeda

Having troubles importing and using as ESM module in Node 20. The error is:
Error: Dynamic require of "url" is not supported at file:///usr/src/app/node_modules/@harnessio/ff-nodejs-server-sdk/dist/esm/index.mjs:1:813 at <anonymous> (/usr/src/app/node_modules/@harnessio/ff-nodejs-server-sdk/node_modules/@harnessio/eventsource/lib/eventsource.js:1:13) at file:///usr/src/app/node_modules/@harnessio/ff-nodejs-server-sdk/dist/esm/index.mjs:1:893 at <anonymous> (/usr/src/app/node_modules/@harnessio/ff-nodejs-server-sdk/src/streaming.ts:1:25) at ModuleJob.run (node:internal/modules/esm/module_job:192:25) at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24) at async loadESM (node:internal/process/esm_loader:40:7) at async handleMainPromise (node:internal/modules/run_main:66:12)

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