Error "EmptyChannelError" on Vercel #36

Closed
opened 2026-02-15 17:05:58 -05:00 by yindo · 2 comments
Owner

Originally created by @rossanodr on GitHub (Jun 18, 2024).

Originally assigned to: @bracesproul on GitHub.

I was following the tutorial https://www.youtube.com/watch?v=BHOTJ_6wRsY&t=1436s
Thie repo works nicely with yarn run dev https://github.com/bracesproul/gen-ui
but it gets errors like [EmptyChannelError] when I try to run it after building or when I try to deploy it on Vercel.

Originally created by @rossanodr on GitHub (Jun 18, 2024). Originally assigned to: @bracesproul on GitHub. I was following the tutorial https://www.youtube.com/watch?v=BHOTJ_6wRsY&t=1436s Thie repo works nicely with yarn run dev https://github.com/bracesproul/gen-ui but it gets errors like [EmptyChannelError] when I try to run it after building or when I try to deploy it on Vercel.
yindo closed this issue 2026-02-15 17:05:58 -05:00
Author
Owner

@bharathvaj-ganesan commented on GitHub (Jun 20, 2024):

I marked Langraph as external server package in next config file and it solved this EmptyChannelError issue.

https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages

// next.config.js
export default {
  reactStrictMode: true,
  experimental: {
    serverComponentsExternalPackages: ['@langchain/langgraph'],
  },
};
@bharathvaj-ganesan commented on GitHub (Jun 20, 2024): I marked Langraph as external server package in next config file and it solved this EmptyChannelError issue. https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages ```.js // next.config.js export default { reactStrictMode: true, experimental: { serverComponentsExternalPackages: ['@langchain/langgraph'], }, }; ```
Author
Owner

@rossanodr commented on GitHub (Jun 20, 2024):

I marked Langraph as external server package in next config file and it solved this EmptyChannelError issue.

https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages

// next.config.js
export default {
  reactStrictMode: true,
  experimental: {
    serverComponentsExternalPackages: ['@langchain/langgraph'],
  },
};

YOU SAVED MY LIFE

@rossanodr commented on GitHub (Jun 20, 2024): > I marked Langraph as external server package in next config file and it solved this EmptyChannelError issue. > > https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages > > ```js > // next.config.js > export default { > reactStrictMode: true, > experimental: { > serverComponentsExternalPackages: ['@langchain/langgraph'], > }, > }; > ``` YOU SAVED MY LIFE
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#36