Cannot find name 'this'
Problem
getting the following error when compiling in node 18 environment on my express server with ts: node_modules/@langchain/core/dist/language_models/chat_models.d.ts(64,129): error TS2304: Cannot find name 'this'. node_modules/@langchain/core/dist/language_models/llms.d.ts(66,122): error TS2304: Cannot find name 'this'. updated from "langchain": "^0.0.72" due to davinci deprecation here is my package.json: [code block] and tsconfig [code block]
Error Output
error when compiling in node 18 environment on my express server with ts:
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Cannot find name 'this'
Maybe try setting `skipLibCheck` in your tsconfig? https://www.typescriptlang.org/tsconfig#skipLibCheck
Trust Score
3 verifications
- 1
Maybe try setting `skipLibCheck` in your tsconfig?
Maybe try setting `skipLibCheck` in your tsconfig?
- 2
https://www.typescriptlang.org/tsconfig#skipLibCheck
https://www.typescriptlang.org/tsconfig#skipLibCheck
Validation
Resolved in langchain-ai/langchainjs GitHub issue #4043. Community reactions: 2 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep