[PR #289] [MERGED] fix(deepagents): move uuid from devDependencies to dependencies #330

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/289
Author: @alvedder
Created: 3/9/2026
Status: Merged
Merged: 3/13/2026
Merged by: @hntrl

Base: mainHead: alvedder/uuid-fix


📝 Commits (2)

  • 7770c2b fix(deepagents): move uuid from devDependencies to dependencies
  • 2052155 Move uuid to dependencies from devDependencies

📊 Changes

3 files changed (+9 additions, -8 deletions)

View changed files

.changeset/long-tables-press.md (+5 -0)
📝 libs/deepagents/package.json (+1 -2)
📝 pnpm-lock.yaml (+3 -6)

📄 Description

uuid package is actually used in runtime by summarization.ts but specified as a dev dependency.

This breaks packages installed via pnpm that have deepagents in dependencies:

import { v4 } from "uuid";
         ^^
SyntaxError: The requested module 'uuid' does not provide an export named 'v4'
    at #asyncInstantiate (node:internal/modules/esm/module_job:319:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:422:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)

Note: if installed via npm it works fine, probably because npm keeps the packages flat and resolves uuid to the version used by any other dependant package.

Solution: move uuid to dependencies map.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/289 **Author:** [@alvedder](https://github.com/alvedder) **Created:** 3/9/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `alvedder/uuid-fix` --- ### 📝 Commits (2) - [`7770c2b`](https://github.com/langchain-ai/deepagentsjs/commit/7770c2b35b8420d553df2a34bf36960c0a195b25) fix(deepagents): move uuid from devDependencies to dependencies - [`2052155`](https://github.com/langchain-ai/deepagentsjs/commit/205215525ed227147a4a3f76c46c0fcf5a993ea4) Move uuid to dependencies from devDependencies ### 📊 Changes **3 files changed** (+9 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/long-tables-press.md` (+5 -0) 📝 `libs/deepagents/package.json` (+1 -2) 📝 `pnpm-lock.yaml` (+3 -6) </details> ### 📄 Description `uuid` package is actually used in runtime by [summarization.ts](https://github.com/langchain-ai/deepagentsjs/blob/main/libs/deepagents/src/middleware/summarization.ts#L44) but specified as a dev dependency. This breaks packages installed via pnpm that have `deepagents` in dependencies: ```log import { v4 } from "uuid"; ^^ SyntaxError: The requested module 'uuid' does not provide an export named 'v4' at #asyncInstantiate (node:internal/modules/esm/module_job:319:21) at async ModuleJob.run (node:internal/modules/esm/module_job:422:5) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) ``` Note: if installed via npm it works fine, probably because `npm` keeps the packages flat and resolves `uuid` to the version used by any other dependant package. Solution: move `uuid` to `dependencies` map. --- <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:22:41 -04:00
yindo closed this issue 2026-06-05 17:22:41 -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#330