-
Notifications
You must be signed in to change notification settings - Fork 580
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
@aws-sdk/types 3.13.1 is not compatible with Typescript 3.x #2372
Comments
I manually made the change from smithy-lang/smithy-typescript#338 in |
Same issue i am also facing Nest has another module for aws sdk but its in aws V2 tsconfig.json |
The issue was with internal release script. |
* First import of aws-synthetics-puppeteer * Reformatted with Prettier * Removed dependency in @types/puppeteer as per CI * Change require to import for ESM compatibility * Log exceptions is optional * Rerun CI now xray is permitted by DT tools * Fix all dtslint + ts-next issues * Downgrade x-ray because aws-sdk-js is incompatible with Typescript 3.x Issue: aws/aws-sdk-js-v3#2372 * Add better types on frequently used methods * Add better types on frequently used methods * fix: takeScreenshot is async
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
Basically the same issue as #2217. This line is not supported in Typescript 3.x:
aws-sdk-js-v3/packages/types/src/util.ts
Line 109 in 4904f6a
Your environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
node: v12.19.1
tsc: v3.9.9
Steps to reproduce
package.json:
test.ts:
Observed behavior
Running
yarn && yarn tsc test.ts
gives the following output:Expected behavior
Should compile properly on Typescript 3.x
Additional context
The backwards-compatible types don't seem to exist at
dist/types/ts3.4/util.d.ts
ortypes/ts3.4/util.d.ts
in 3.13.1. They do appear atdist/types/ts3.4/util.d.ts
in 3.10.0, but I still get an error with that version. As mentioned in the linked issue, 3.6.1 works, but I haven't checked versions between 3.6.1 and 3.10.0. The backwards-compatible types exist for 3.6.1 exist attypes/ts3.4/util.d.ts
, so I wonder if that's the issue (in 3.10.0 they were indist
).The text was updated successfully, but these errors were encountered: