Replies: 1 comment
-
Hey @cinqisap, long time no code! Hope you've been well amidst all these semicolons and curly braces. Based on the error message you provided, it seems like the issue might be arising due to incorrect import paths or a misconfiguration in how TypeScript or JavaScript files are being resolved in your project. Here are a few things you could check:
Regarding similar issues in the LangChain JS repository, there were two closed issues that might be related to your problem. The first one, Multiple modules error, was resolved by adjusting the webpack configuration. The second one, Issue importing submodules using es6 module import from documentation, was resolved by updating to a newer version of the LangChain JS framework. If after checking these points the issue persists, please provide more details about your setup and the steps you've taken so far. This will help in identifying the root cause of the problem. Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hi, I am currently adding integration of the sap hana vector store, and I am in the phase of writing examples and running examples. But when I ran the code above, the error showed up:
After I inspect the
node_modules
underlangchainjs
repo, I found the path for TextLoader is/node_modules/langchain/src/document_loaders/fs/text.ts
instead of/node_modules/langchain/document_loaders/fs/text.js
. I inspect whether there is a problem with installing langchain package or if the functions are not properly exported. But I couldn't solve it even by deletingnode_module
and runningyarn
several times to re-install the langcain package.System Info
Beta Was this translation helpful? Give feedback.
All reactions