[PR #501] [MERGED] fix: bump @langchain/core to ^1.1.42 across all workspace packages #516

Closed
opened 2026-06-05 17:23:32 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/501
Author: @sukhmanghotraa
Created: 5/1/2026
Status: Merged
Merged: 5/1/2026
Merged by: @hntrl

Base: mainHead: fix/bump-langchain-core-1.1.42


📝 Commits (3)

  • fb92777 fix: bump @langchain/core to ^1.1.42 across all workspace packages
  • 24a310f Update lockfile
  • b547e21 Update package versions in brown-rings-sparkle

📊 Changes

8 files changed (+82 additions, -76 deletions)

View changed files

.changeset/brown-rings-sparkle.md (+7 -0)
📝 examples/async-subagents/parallel-research/package.json (+1 -1)
📝 examples/package.json (+1 -1)
📝 internal/eval-harness/package.json (+1 -1)
📝 libs/acp/package.json (+1 -1)
📝 libs/deepagents/package.json (+1 -1)
📝 libs/providers/quickjs/package.json (+1 -1)
📝 pnpm-lock.yaml (+69 -70)

📄 Description

Problem

When using @langchain/google as a model provider in the examples workspace, the server crashes immediately with:

  1. Runtime crash on startup:

    ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './utils/uuid' is not
    defined by "exports" in @langchain/core/package.json
    

    @langchain/google imports @langchain/core/utils/uuid, a subpath added in @langchain/core@1.1.42. Both the examples workspace and libs/deepagents were pinned to ^1.1.40 which does not export this path.

  2. TypeScript type error after fixing the runtime crash:

    Type 'ChatGoogle' is not assignable to type 'BaseLanguageModel<any, BaseLanguageModelCallOptions>'
    

    Even after bumping @langchain/core in examples/ only, pnpm kept two separate copies in its store - 1.1.40 for deepagents and 1.1.42 for @langchain/google. TypeScript treats them as structurally incompatible types because the type import paths differ.

Fix

  • Bump @langchain/core from ^1.1.40^1.1.42 in all ../package.json files

Testing

cd examples/research
pnpm dlx @langchain/langgraph-cli dev
# -> No ERR_PACKAGE_PATH_NOT_EXPORTED and agent starts correctly

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/501 **Author:** [@sukhmanghotraa](https://github.com/sukhmanghotraa) **Created:** 5/1/2026 **Status:** ✅ Merged **Merged:** 5/1/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `fix/bump-langchain-core-1.1.42` --- ### 📝 Commits (3) - [`fb92777`](https://github.com/langchain-ai/deepagentsjs/commit/fb927776c37f78ec504583c6a4295973162f5dd2) fix: bump @langchain/core to ^1.1.42 across all workspace packages - [`24a310f`](https://github.com/langchain-ai/deepagentsjs/commit/24a310f7bb0bb286e8cbd124f1581a479f9d2586) Update lockfile - [`b547e21`](https://github.com/langchain-ai/deepagentsjs/commit/b547e2104b22c7715922e6831505d97e355ae96c) Update package versions in brown-rings-sparkle ### 📊 Changes **8 files changed** (+82 additions, -76 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/brown-rings-sparkle.md` (+7 -0) 📝 `examples/async-subagents/parallel-research/package.json` (+1 -1) 📝 `examples/package.json` (+1 -1) 📝 `internal/eval-harness/package.json` (+1 -1) 📝 `libs/acp/package.json` (+1 -1) 📝 `libs/deepagents/package.json` (+1 -1) 📝 `libs/providers/quickjs/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+69 -70) </details> ### 📄 Description ## Problem When using `@langchain/google` as a model provider in the examples workspace, the server crashes immediately with: 1. Runtime crash on startup: ```bash ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './utils/uuid' is not defined by "exports" in @langchain/core/package.json ``` `@langchain/google` imports `@langchain/core/utils/uuid`, a subpath added in `@langchain/core@1.1.42`. Both the examples workspace and `libs/deepagents` were pinned to `^1.1.40` which does not export this path. 2. TypeScript type error after fixing the runtime crash: ```bash Type 'ChatGoogle' is not assignable to type 'BaseLanguageModel<any, BaseLanguageModelCallOptions>' ``` Even after bumping `@langchain/core` in `examples/` only, pnpm kept two separate copies in its store - `1.1.40` for `deepagents` and `1.1.42` for `@langchain/google`. TypeScript treats them as structurally incompatible types because the type import paths differ. ## Fix - Bump `@langchain/core` from `^1.1.40` → `^1.1.42` in all `../package.json` files ## Testing ```bash cd examples/research pnpm dlx @langchain/langgraph-cli dev # -> No ERR_PACKAGE_PATH_NOT_EXPORTED and agent starts correctly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:32 -04:00
yindo closed this issue 2026-06-05 17:23:32 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#516