-
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
error TS1452: 'resolution-mode' assertions are only supported when moduleResolution
is node16
or nodenext
.
#3453
Comments
🤖 Hello @hirocsingh! I'm Dosu, a bot here to assist you with bugs, answer questions, and help you become a contributor to the langchainjs project. While we wait for a human maintainer, feel free to ask me anything related to this repository. Let's make your coding journey a smooth one! Based on the error message you're encountering and the information you've provided, it seems like your TypeScript version might be causing the issue. Even though your The You can upgrade TypeScript by running the following command: npm install --save-dev typescript@latest This will install the latest version of TypeScript as a devDependency in your project. After upgrading TypeScript, try compiling your project again. The error should be resolved. Additionally, I found two similar issues in the langchainjs repository that might be helpful:
These issues suggest modifying your Please try these solutions and let me know if the issue persists. I'm here to help! Sources |
@dosubot My Typescript version is 5.1.3 which higher than 4.5 which you suggested. |
🤖 Based on the information you've provided and the similar issues I found in the langchainjs repository, it seems like the error Firstly, it's worth noting that the If you are already using TypeScript 4.5 or later and still encountering this error, it might be due to a compatibility issue between the LangChain Javascript framework and your TypeScript version. According to the package.json file in the langchainjs repository, the exact version of TypeScript that is compatible with the LangChain Javascript framework version 0.0.198 is TypeScript version 5.0.0. In addition to checking your TypeScript version, there are a few other steps you can take to potentially resolve this issue:
npm install [email protected]
npm install chromadb
npm install @huggingface/inference
npm install replicate
npm install @supabase/supabase-js
npm install @supabase/postgrest-js
These solutions were suggested in the following issues:
I hope this helps! If you're still encountering issues after trying these steps, please provide more information about your setup and the exact steps you're taking when you encounter the error. Sources
This 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. |
Updating to following configuration worked.
|
I am getting the following error while compiling my project.
Used following command to install
langchain
Running following versions on my system.
Typescript: Version 5.1.3
Node: Version 20.1.0
npm: Version 9.6.4
TS Configuration as follows:
The text was updated successfully, but these errors were encountered: