-
Notifications
You must be signed in to change notification settings - Fork 78
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
Typescript compliation issue - Type 'RequestInit' is not assignable to type 'never' #367
Comments
Can you share your tsconfig? This is likely an issue in your config. |
|
Can you try If that presents other challenges for you, you can try adding this line before your first import of the package: import '@anthropic-ai/sdk/shims/node' More information here: https://github.com/anthropics/anthropic-sdk-typescript/tree/main/src/_shims#readme |
it now fails on something else
|
Got it. Does |
Answering on behalf of Yaron, it didn't help as well. |
hmm… that's surprising. Can you share a codesandbox with minimal repro? |
I also get exactly the same error when I set
|
Can you share a codesandbox with a minimal repro? Without more details, we can't really directly fix this. You might also try |
This repro is pretty much the same as the docs; please run I worked around this by converting the ts file to a js file with JSDOC comments, but that is a work around, not a "solution" |
Thanks, we'll take a look! |
@S-unya unfortunately I'm getting a "Sandbox not found" error message from https://codesandbox.io/p/sandbox/angry-thunder-ll36v2, is it private? |
having compilation issue with the
@anthropic-ai/bedrock-sdk
, using in node js + tsusing
@anthropic-ai/bedrock-sdk
: 0.9.2typescript
: 5.2.2The text was updated successfully, but these errors were encountered: