-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/llms' is not defined by "exports" #1431
Comments
Also running into this. In my case:
But indeed when I check the
|
I am having the same issue. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './llms' is not defined by "exports" in /Users/.../project/node_modules/langchain/package.json |
Running into this as well. Seems that the problem is that |
Having the same issue, I am using tsconfig:
Webpack config:
|
I'm realizing this is the wrong repository for this issue. Linking to the correct issue here: |
Hi, @jakewallin82! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you encountered an error related to ESM (ECMAScript Modules) in a React/Typescript + Express app. You were seeking guidance or resources to resolve the issue. Other users have also reported encountering the same error and have provided additional information and suggestions. One user suggested that the problem may be due to missing CommonJS However, it seems that the issue is still unresolved. Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding, and we look forward to hearing from you soon! Best regards, |
This is still an issue |
check the directory of the langchain model in here at langchain.js. Usually the extension is from the community section of their API. so then in the import, using es6 modules in the package.json, run the following
|
I know this has to do with the ESM. I'm building a React/Typescript + Express app.
If you could please point me to a resource to figure out how to fix the issue, I would really appreciate it.
The text was updated successfully, but these errors were encountered: