-
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
Bug: @langchain/mistralai - Error [ERR_REQUIRE_ESM]: require() of ES Module #3662
Comments
🤖 Hello @gkhngyk! I'm Dosu, a friendly bot who's here to assist you with pesky bugs, answer your queries, or guide you on how to contribute to our repository. While we're waiting for a human maintainer to join us, I'm here to make your experience smoother! Let's get started, shall we? The error you're encountering is due to the fact that the However, the package.json file also specifies an alternative entry point for If you're still encountering the error, it could be due to one of the following reasons:
To resolve the issue, you can try the following:
You can refer to the libs/langchain-mistralai/package.json for more details. Also, there have been similar issues reported in the past, you can refer to these for more context:
Please let me know if this helps or if you need further assistance. -Dosu SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
CC @bracesproul |
hey @gkhngyk the issue should be resolved if you bump your |
Thank you the problem seems to be solved. |
@bracesproul I'm running into this with @langchain/mistralai 0.0.8:
|
whoops sorry about that, I thought they fixed that with their new sdk update... |
@bracesproul when trying to use last versions I face this error:
Anyone else? Can someone provides its dependencies versions about langchain? I also tried with https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-mistralai versions but same. EDIT: similar to #4269 EDIT2: if upgrading |
Have you installed core according to this page and are on the latest version (0.1.40)? |
When I try to import ChatMistralAI I get the following error:
The text was updated successfully, but these errors were encountered: