Skip to content
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 when compiling with tsc version 5.5.3 #189

Open
Avi-W opened this issue Jul 18, 2024 · 0 comments
Open

Error when compiling with tsc version 5.5.3 #189

Avi-W opened this issue Jul 18, 2024 · 0 comments

Comments

@Avi-W
Copy link

Avi-W commented Jul 18, 2024

When compiling I am getting the following error:

node_modules/@instructor-ai/instructor/dist/index.d.cts:103:129 - error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

103             }>(params: P, requestOptions?: ClientTypeChatCompletionRequestOptions<C>) => Promise<ReturnTypeBasedOnParams<typeof this.client, P>>;
                                                                                                                                    ~~~~


Found 1 error in node_modules/@instructor-ai/instructor/dist/index.d.cts:103

tsconfig.json:

{
  "compilerOptions": {
    "target": "es2021",
    "lib": ["es2021"],
    "module": "node16",
    "types": ["node"],
    "outDir": "../dist",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "exactOptionalPropertyTypes": true,
    "inlineSourceMap": true,
  }
}

I was able to ignore the issue with adding "skipLibCheck": true, to tsconfig but that is not optimal.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant