-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js build failing after version 14.2 with ConversationChain #5235
Comments
The error messages you're encountering during the Next.js build process seem to stem from issues related to ES module imports and possibly the handling of dependencies by Next.js. Here's a more focused approach to troubleshoot and potentially resolve these issues:
If after trying these steps you're still facing build issues, it might be helpful to create a minimal reproduction case to isolate the problem further. Additionally, reviewing similar issues in the LangChain.js repository or related discussions might provide more context or solutions specific to your problem.
|
It's very similar to what I saw in the past with #2335 . We have production building fine, but now due to totally unrelated changes (really just some FE stuff and some DB comm) on a different feature branch, the build fails. The bot stuff are not helpful. For us, it's the:
Anyway, I tried a similar workaround as in that other PR, adding an import to somewhere in our codebase, and it works 🤦 :
|
This weird eye hurting fix left me with two build problems :D
|
You just have to hurt yourself a bit more by figuring out where from you could import those two |
Here is the fix, prepare yourself.
That's all I can do before the actual fix. Thanks @hnykda ! |
I'm also have this issue using next 14.2.* (if I downgrade to 14.1 it works) |
Hi folks, apologies for missing this - will dig in as soon as I can. |
It seems to work ok here (with 0.2.x): https://github.com/langchain-ai/langchain-nextjs-template I wonder if it's some shenanigans with multiple core versions? Could you check which version(s) are installed and try setting resolutions/overrides as shown here? https://js.langchain.com/v0.2/docs/how_to/installation/#installing-integration-packages |
In my case, this worked for me. next.config.js
|
Checked other resources
Example Code
The followind code:
Error Message and Stack Trace (if applicable)
Error message on build only:
Description
Everything is working locally, only build is failing, so deployment is not possible.
System Info
The text was updated successfully, but these errors were encountered: