-
Notifications
You must be signed in to change notification settings - Fork 578
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
Type 'DynamoDBClient' does not satisfy the constraint 'SmithyClient'. #1803
Comments
@jamesjrg JS SDK v3 uses TS 4.1.2 for building the project, there COULD be some issues with TS 3.8. Normally, for TS project, you need to remove Please let me know if you are still seeing the same error after excluding the UPDATE: I can reproduce with TS4.1.2 |
This is the tsconfig.json currently being used, it appears to already exclude node_modules:
I tried removing |
I am getting the same error with Can confirm removing I've tried various combinations of typescript and node types and hit this problem with all of them. I can get the error with just this code:
|
I am getting a similar error that saids: Type 'S3Client' does not satisfy the constraint 'SmithyClient' |
A less-scary work-around here would be to only disable two of the
This bug can be avoided by disabling ...
"noImplicitAny": true,
"noImplicitThis": true,
"alwaysStrict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": false,
"strictPropertyInitialization": false,
... |
Remove the type guard to unblock aws#1803. TODO: add type guard that doesn't block the compile
* fix(util-waiter): fix compiling error with waiter * fix(util-waiter): remove type guard for client Remove the type guard to unblock #1803. TODO: add type guard that doesn't block the compile
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
I'm not using the waiters code, but running "tsc" on a project using @aws-sdk/client-dynamodb throws this error:
Maybe the SDK doesn't work with older versions of typescript or something.
SDK version number
3.0.0
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
Paste output of
npx envinfo --browsers
ornode -v
orreact-native -v
node is v12.18.2
But maybe more useful is that typescript is 3.8.3
To Reproduce (observed behavior)
Given I haven't used the waiters code I wonder if just the include would cause it to fail, but this is approximately my code:
Expected behavior
It compiles.
The text was updated successfully, but these errors were encountered: