-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[ERR_REQUIRE_ESM]: require() of ES Module \node_modules\srt-parser-2\dist\index.js from langchain\dist\document_loaders\fs\srt.cjs not supported #4059
Comments
Hi, @ladrians, I'm helping the langchainjs team manage their backlog and am marking this issue as stale. The issue was opened by you and is related to the Could you please confirm if this issue is still relevant to the latest version of the langchainjs repository? If it is, please let the langchainjs team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days. Thank you for your understanding and cooperation. If you have any further questions or need assistance, feel free to reach out. |
Does this persist if you upgrade your peer dependency to the latest version? I think this is related to folks running into #1554. Unfortunate that there was a breaking change in a patch in that package. Please reopen if that doesn't fix it. |
yes it does, not sure how to WA it. I have the latest 1.2.3 version. This is a minimal sample to reproduce it import { SRTLoader } from "langchain/document_loaders/fs/srt";
export const run = async () => {
const loader = new SRTLoader(
"c:/temp/test.srt"
);
const docs = await loader.load();
console.log(docs.length);
}
(async () => {
await run();
})(); using ECMAScript
the test.srt file is just
|
@jacoblee93 if possible can you reopen it? I do not have the option. |
I am trying to update to version 0.1 from 0.0.214. I am receiving the following error
from this code, noticed the
srt-parser-2
dependency was updated.thanks,
The text was updated successfully, but these errors were encountered: