Developers face broken dependencies and unexpected behavior with Bun and Langchain
15 posts since Sep 2024, all from GitHub.
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x]…”
“What version of Bun is running? 1.4.2 What platform is your computer? macOS 26.6.2 What steps can reproduce the bug? Run bun pm cache rm in any repo using the global store. What is the expected behavior? bun pm cache rm only deletes cached packages, not packages that are part of…”
“What version of Bun is running? 1.1.34 canary.40+693320879 What platform is your computer? Linux 5.15.0 43 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? The bundled script to work as expected. What do you see instead? test.js Additional…”
Multiple developers report issues with package management, type checking, and middleware functionality within the Bun and Langchain ecosystems. Problems include phantom circular dependencies, cache corruption, and unintended overrides of existing features.
SOURCES (15)
“What version of Bun is running? 1.4.4 (works in 1.4.2) What platform is your computer? Linux x64 What steps can reproduce the bug? bun repro.mjs What is the expected behavior? Output of 1.4.2: What do you see instead? Output of 1.4.4: Once entry.mjs fails to…”
“What version of Bun is running? Also reproduced on 1.4.4 canary.1+5c6d4e24c . Newer canaries were not tested. What platform is your computer? What steps can reproduce the bug? types.ts : spec.ts : swapped.cjs : Without the assignment, require("./spec.ts") returns {"value":1} on both runtimes. What is the expected behavior? Node v26.7.0: In Node, the .js handler picks the format from the file name it is given, so it still strips types from a .ts file. In Node 26.7.0 Object.keys(Module. extensions”
“What version of Bun is running? 1.4.3+c6da4a4d3; also 1.4.4 canary.1+6c1eb067e What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? No dependencies required. repro.ts : tsconfig.json : Run: What is the expected behavior? No errors, matching TypeScript 7.0.2 and 7.1.0 dev.20261010.1. Both accept this reproduction and exit with code 0 when run with: What do you see instead? Bun exits with code 1 and reports TS2322 on the assignment to result : The diagnostic in”
“What version of Bun is running? 1.4.3+c6da4a4d3 What platform is your computer? Linux 7.0.12+deb13 amd64 x86 64 unknown What steps can reproduce the bug? 1. Create package.json : 2. Create tsconfig.json : 3. Create repro.ts : 4. Run: What is the expected behavior? No errors, the same as tsc 7.0.2, which prints nothing and exits with code 0. What do you see instead? bun check exits with code 1: Additional information I changed one thing at a time against repro.ts : | Variant | bun check | | | | |”
“What version of Bun is running? 1.4.3 canary.1+620b50f6a What platform is your computer? Darwin 27.0.0 arm64 arm What steps can reproduce the bug? What is the expected behavior? No type error (consistent with typescript 7.0.2). What do you see instead? 35 | export function f(item: SetRequired<Item, 'group' ): void { 36 | if (isItemA(item)) useItemA(item) ^ error: TS2615: Type of property 'update' circularly references itself in mapped type 'WritableDraft<Simplify<Omit<Item<Kind , "group" & Requi”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“What version of Bun is running? 1.4.2+744846f84 What platform is your computer? macOS 26.6.2 What steps can reproduce the bug? What is the expected behavior? A project using @types/bun type checks in TypeScript. What do you see instead? TypeScript fails with 13 errors due to /// <reference types="node" / inside undici types . Additional information I'm not sure what the ideal solution here is. In theory, the correct way to avoid a phantom dependency is for undici types to declare a dependency on”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“What version of Bun is running? 1.4.2 What platform is your computer? macOS 26.6.2 What steps can reproduce the bug? Run bun pm cache rm in any repo using the global store. What is the expected behavior? bun pm cache rm only deletes cached packages, not packages that are part of an active installation. What do you see instead? bun pm cache rm is a landmine for anyone using the global store. If you run it accidentally while offline, you might just have broken all your projects. This prevents two”
“What version of Bun is running? 1.3.12+700fc117a What platform is your computer? Linux 5.15.0 170 generic x86 64 x86 64 What steps can reproduce the bug? Compiling a TypeScript project using Bun.build with the bytecode: true flag causes a C++ assertion failure and core dump when executing the resulting binary. Here is the build script configuration being used: When running the compiled ./server executable, it immediately crashes. What is the expected behavior? The binary should execute the serve”
“What version of Bun is running? 1.3.1 canary.106+7662de963 What platform is your computer? Darwin 25.0.0 arm64 arm What steps can reproduce the bug? Monorepo with Elysia project and adding @elysiajs/opentelemetry while using fromTypes() or directly attempting type emissions with either tsc or tsgo What is the expected behavior? Proper type resolution without the error, the same behaviour as when using linker hoisted or bunfig linker = "hoisted" What do you see instead? There are more than one of”
“What version of Bun is running? 1.3.0+b0a6feca5 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? When working with a Bun workspace (monorepo), TypeScript fails to infer types correctly in consuming packages when a workspace package's index.ts re exports using absolute path aliases ( @/ ). The types resolve correctly when using relative paths. Steps to Reproduce Project Structure Root package.json database/package.json database/tsconfig.json database/src/d”
“What version of Bun is running? 1.2.18+0d4089ea7 What platform is your computer? Linux 6.15.6 2 cachyos x86 64 unknown What steps can reproduce the bug? 1. Create a typescript file and fill it with this: 2. Compile it, bun build compile minify sourcemap bytecode ./src/index.ts outfile server was the command I used 3. Run it, and observe the crash, it crashes even when including the variable explicitly when running. What is the expected behavior? For the program not to crash, or at least give a l”
“What version of Bun is running? 1.1.34 canary.40+693320879 What platform is your computer? Linux 5.15.0 43 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? The bundled script to work as expected. What do you see instead? test.js Additional information The issue in code @swc/wasm typescript/wasm.js swc typescript.js exports wasm is undefined.”
“What version of Bun is running? 1.1.27+267afa293 What platform is your computer? Linux 6.10.8 arch1 1 x86 64 unknown What steps can reproduce the bug? The following code produces a Reference Error when running bun entry.ts but not when the specific lines in entry.ts are uncommented. When uncommented, they run fine. Notes: import { objectWithDependency } from './singletons' must come before import ClassWithDependency from './DependencyClass' for the error to go away Running bun singleton.ts runs”
