Need an OpenAI LangChain Quasar Application fixed

Job ID: 37249542

Budget: $10 – $30 USD

I have the a Quasar application using 2.3 that is using the latest build of OpenAI (4.10) that is giving me an error if I try use LangChain's Textloader I'm also using node 16+

import { TextLoader } from "langchain/document_loaders/fs/text";
import { CharacterTextSplitter } from "langchain/text_splitter";


const loader = new TextLoader("..../../.")
const docs = await loader.load();
I get

text.js:48 Uncaught (in promise) TypeError: readFile is not a function
at TextLoader.load (text.js:48:26)
at async Proxy.storeData (IndexPageLangChain.vue:75:16)


not sure if it can't find my file- so I used in internal path and a full url to check but got the same error.
Related categories: JavaScript Node.js Vue.js Framework OpenAI