Skip to content

Commit aa7ed30

Browse files
nirgaclaude
andcommitted
fix: add eslint disable for require() in TypeScript build
Add eslint disable comment to resolve TypeScript build error for require(). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d4424b4 commit aa7ed30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/instrumentation-langchain/src/instrumentation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class LangChainInstrumentation extends InstrumentationBase {
5353

5454
private instrumentCallbackManagerDirectly() {
5555
try {
56+
// eslint-disable-next-line @typescript-eslint/no-var-requires
5657
const callbackManagerModule = require("@langchain/core/callbacks/manager");
5758

5859
if (callbackManagerModule?.CallbackManager) {

0 commit comments

Comments
 (0)