-
Notifications
You must be signed in to change notification settings - Fork 10
Description
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)