-
Notifications
You must be signed in to change notification settings - Fork 351
Description
Tracer Version(s)
5.73.0
Node.js Version(s)
22.21.0
Bug Report
The dd-trace package lists @openfeature/server-sdk as a peer dependency at ~1.19.0 (source). dd-trace installs @datadog/openfeature-node-server@0.1.0-preview.12 (source), which installs @openfeature/server-sdk@~1.18.0. The transient dependency of @openfeature/server-sdk@~1.18.0 directly conflicts with dd-trace's peer dependency of @openfeature/server-sdk@~1.19.0. As a result, running npm ci in node-22 on a project with a package.json listing dd-trace@5.73.0 as a dependency fails with this error:
npm error Missing: openapi-types@12.1.3 from lock file
npm error Invalid: lock file's @openfeature/server-sdk@1.18.0 does not satisfy @openfeature/server-sdk@1.19.0
npm error Missing: @openfeature/server-sdk@1.18.0 from lock file
dd-trace@5.72.0, does not seem to have this issue.
Reproduction Code
package.json
{
"name": "demonstration",
"version": "1.0.0",
"private": true,
"main": "dist/index.js",
"dependencies": {
"dd-trace": "^5.73.0"
}
}
Run npm install
Run npm ci
Results in error:
npm warn config init.author.name Use `--init-author-name` instead.
npm warn config init.author.email Use `--init-author-email` instead.
npm error code EUSAGE
npm error
npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Invalid: lock file's @openfeature/server-sdk@1.18.0 does not satisfy @openfeature/server-sdk@1.19.0
npm error Missing: @openfeature/server-sdk@1.18.0 from lock file
npm error
npm error Clean install a project
npm error
npm error Usage:
npm error npm ci
npm error
npm error Options:
npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
npm error [--no-bin-links] [--no-fund] [--dry-run]
npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm error
npm error aliases: clean-install, ic, install-clean, isntall-clean
npm error
npm error Run "npm help ci" for more info
npm error A complete log of this run can be found in: /Users/spencerwa/.npm/_logs/2025-10-24T22_21_18_969Z-debug-0.log
Error Logs
No response
Tracer Config
No response
Operating System
Darwin ZG13769 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:41:45 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T6000 arm64
Bundling
Webpack