Replies: 2 comments 1 reply
-
🤖 The error message you're seeing, In your case, it seems like you're trying to import a Python module ( If you're trying to use the functionality provided by If you're already doing this and still facing the issue, it could be due to a misconfiguration in your Next.js project. Please provide more information about your setup, including the version of Next.js you're using and how you're integrating LangChain into your project. Regarding the similar issues in the LangChain repository, they seem to be related to Python import errors within the LangChain project itself, not with importing LangChain modules into a JavaScript context. Therefore, they might not be directly applicable to your situation. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
@dosu-bot. No, it isn't a python code... it works fine in a different node application... but I get the error when I transfer the code to Next.js |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
code:
import { TextLoader } from "langchain/document_loaders/fs/text";
Error:
^^^ I am working with other items from Langchain in Next.js with no problem, but I don't understand why am I getting an error like this for this file?
Beta Was this translation helpful? Give feedback.
All reactions