Skip to content

Installing @launchdarkly/server-sdk-ai-langchain fails with ERESOLVE due to dotenv peer dependency conflict through @langchain/community / @browserbasehq/stagehand #1310

Description

@epietrowicz

Describe the bug
When attempting to install @launchdarkly/server-sdk-ai-langchain, npm fails with an ERESOLVE unable to resolve dependency tree error.

To reproduce
Have dotenv@latest installed in a Node.js environment and attempt to install @launchdarkly/server-sdk-ai-langchain.

Expected behavior
The install to succeed.

Logs

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: tabbit@0.0.0
npm error Found: dotenv@17.4.2
npm error node_modules/dotenv
npm error   dotenv@"^17.4.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peer dotenv@"^16.4.5" from @browserbasehq/stagehand@1.14.0
npm error node_modules/@browserbasehq/stagehand
npm error   peer @browserbasehq/stagehand@"^1.0.0" from @langchain/community@0.3.59
npm error   node_modules/@langchain/community
npm error     peer @langchain/community@"^0.2.0 || ^0.3.0" from @launchdarkly/server-sdk-ai-langchain@0.5.5
npm error     node_modules/@launchdarkly/server-sdk-ai-langchain
npm error       @launchdarkly/server-sdk-ai-langchain@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: sdk/server-aiLabel for issues affecting the server AI package.waiting for feedbackIndicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions