-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Issue importing submodules using es6 module import from documentation #45
Comments
We're missing the |
Hey there! Would love to get a little bit more info on your setup for this project. Are you using js or typescript? If typescript, could you share your We used to use the Ideally we could continue using this approach - I have high confidence we can make it work given this is what next is doing. You can also check out chat langchain which is an example project that imports from subpaths |
Thanks! I will look at the example project more. I am not using typescript, just vanilla node. The only change I made after running
|
Hoping this will be solved by #54 -- I'll test with your EDIT: a very simple repo with your |
This is live in version 0.0.8 - could you just double check if this is resolved on your end before I close? |
Closing for now, can re-open if anyone is still encountering this issue |
Sorry for the delay, couldn't get to this. Works for me! |
Running this code:
gives me this error:
When I add the
.js
to the import (like this:import { initializeAgentExecutor } from "langchain/agents.js";
) it works fine. This same issue occurs for all imports I've tried. It's been a while since I worked with javascript so maybe I'm missing something in the es6 module import process that's obvious but wondering if I'm doing something wrong here or whether the documentation should be updated. I assume it should work without the.js
suffix.Running node v18.13.0 on macOS Catalina 10.15.
The text was updated successfully, but these errors were encountered: