-
Notifications
You must be signed in to change notification settings - Fork 48
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
References to V2 AWS SDK and an unknown DynamoDBClientV3 #265
Comments
@NoComment73 The changes to newer SDK v2 and v3 are briefly documented here or more in detail here. You can also refer to the official examples of using TypeDORM with SDK versions 2 and 3 here. P.S. If the typing mentioned above is still an issue with you, please try to reproduce the issue in public repository with minimum config and share the link. |
Setting "allowSyntheticDefaultImports" to true solved the problem, thx! Don't know if this is related, but I dare to ask here: when I deploy my code as an AWS Lambda, I get the following error: { I've added "import 'reflect-metadata'" into the entry point of the Lambda, have set "emitDecoratorMetadata": true in tsconfig. Any ideas? |
Hi @NoComment73 Which build tool are you using? Is that |
Yep, esbuild, in the meanwhile, I'm aware of the |
Have been trying to get 1.15.0-beta.10 running with AWS SDK V3, but I always get the following errors:
`node_modules/@typedorm/document-client/cjs/src/types/document-client-types.d.ts:1:8 - error TS1192: Module '"/Users/xxx/git/yyyy/node_modules/aws-sdk/index"' has no default export.
1 import AWS, { DynamoDB } from 'aws-sdk';
~~~
node_modules/@typedorm/document-client/cjs/src/types/document-client-types.d.ts:2:8 - error TS1192: Module '"/Users/xxx/git/yyyy/node_modules/@aws-sdk/client-dynamodb/dist-types/ts3.4/index"' has no default export.
2 import DynamoDBClientV3 from '@aws-sdk/client-dynamodb';
`
DynamoDBClientV3 is something I cannot find in any related code or via Google. And the import of the aws-sdk package looks also weird as this V2 package is not documented to be needed when working with typedorm and AWS SDK V3.
Any idea what goes wrong here? Is this something that can be reproduced, or is it related to my setup (e.g. tsconfig.json misses something important)?
The text was updated successfully, but these errors were encountered: