Failed to resolve import "langchain/vectorstores/memory" . Does the file exist? #5064
Replies: 1 comment
-
It looks like the import path for import { MemoryVectorStore } from "langchain/src/vectorstores/memory"; Ensure your project's Check that all dependencies, including If these steps don't resolve the issue, consider looking into similar issues in the LangChain JS repository, such as a closed issue that was resolved in a specific pull request, for potential solutions or clues. Make sure all configurations and dependencies are correctly set up and aligned with the requirements of your project and the LangChain JS library. Sources
|
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
10:03:16 AM [vite] Internal server error: Failed to resolve import "langchain/vectorstores/memory" .... Does the file exist?
Plugin: vite:import-analysis
File: /home/darren/git/elasticcode-ai/platform/ui/src/layouts/MainLayout.vue
7 | import { OpenAIEmbeddings } from "@langchain/openai";
8 | const embeddings = new OpenAIEmbeddings();
9 | import { MemoryVectorStore } from "langchain/vectorstores/memory";
System Info
$ node -v
v20.5.1
$ uname -a
Linux phoenix 6.6.10-76060610-generic #202401051437
170908527722.04~31d73d8 SMP PREEMPT_DYNAMIC Wed F x86_64 x86_64 x86_64 GNU/LinuxBeta Was this translation helpful? Give feedback.
All reactions