LangChain not compatible with Next.js 14.2.x and causing error in server component rendering. #5241
metaloozee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so i've recently implemented langchain into my nextjs project - ive also followed their guide on installation but it seems like it is not yet compatible with next@14.2.x but it works completely fine with next@14.1.x
what i've been facing is a weird error which says that a class component has been rendered in a server component but in my entire codebase im not even using a class component. im only using client components which are rendered in the app directory pages.
it works completely fine when i build the project and run it by using the start command but it always shows the error whenever i run the project using dev --turbo and submit a form.
i only get the error after submitting any kind of form in my project.
for the forms im using ui/shadcn along with zod and react-hook-forms
Beta Was this translation helpful? Give feedback.
All reactions