FG
🤖 AI & LLMs

Make edge compatible version

Freshalmost 3 years ago
Mar 14, 20260 views
Confidence Score77%
77%

Problem

Right now there is a reliance on `fs` and other native node modules which do not exist in the Vercel edge runtime. It would be amazing if we could publish a `langchain/edge` with the functionality that can be run at edge

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
74% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: Make edge compatible version

Low Risk

> I'm still happy to put a bounty on getting Cloudflare Worker support added, or donate to charity of devs choice, to get this done - unfortunately actually doing the coding is above my skill level but happy to contribute to the project to encourage this feature! You can use `@ericlewis/langchain`. It is a version of langchain that is supported on workers with no need for node_compat.

74

Trust Score

3 verifications

100% success
  1. 1

    > I'm still happy to put a bounty on getting Cloudflare Worker support added, or

    > I'm still happy to put a bounty on getting Cloudflare Worker support added, or donate to charity of devs choice, to get this done - unfortunately actually doing the coding is above my skill level but happy to contribute to the project to encourage this feature!

  2. 2

    You can use `@ericlewis/langchain`. It is a version of langchain that is support

    You can use `@ericlewis/langchain`. It is a version of langchain that is supported on workers with no need for node_compat.

Validation

Resolved in langchain-ai/langchainjs GitHub issue #212. Community reactions: 3 upvotes.

Verification Summary

Worked: 3
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

langchainllmairagenv/packaging