Error when building app using "@aws-sdk/client-route-53": "3.37.0"
See original GitHub issueDescribe the bug
Installed “@aws-sdk/client-route-53”: “3.37.0” in a CDK typescript project. Tried to execute npm run build, and got the following error:
> tsc
node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53.d.ts:97:5 - error TS1005: '}' expected.
97
Found 1 error.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! Exit status 2
npm ERR!
Fixed adding closing } at the end of the file node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53.d.ts
Your environment
SDK version number
“@aws-sdk/client-route-53”: “3.37.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
or node -v
or react-native -v
node -v
v14.18.1
npx: installed 1 in 2.282s
System:
OS: Linux 5.11 Linux Mint 20.2 (Uma)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Memory: 571.79 MB / 15.21 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 14.18.1 - /usr/bin/node
npm: 6.14.15 - /usr/bin/npm
Managers:
Cargo: 1.55.0 - ~/.cargo/bin/cargo
pip3: 20.0.2 - /usr/bin/pip3
Utilities:
Make: 4.2.1 - /usr/bin/make
GCC: 9.3.0 - /usr/bin/gcc
Git: 2.25.1 - /usr/bin/git
Virtualization:
Docker: 20.10.9 - /usr/bin/docker
IDEs:
Nano: 4.8 - /usr/bin/nano
VSCode: 1.61.1 - /usr/bin/code
Vim: 8.1 - /usr/bin/vim
Languages:
Bash: 5.0.17 - /usr/bin/bash
Perl: 5.30.0 - /usr/bin/perl
Python3: 3.8.10 - /usr/bin/python3
Rust: 1.55.0 - /home/victor/.cargo/bin/rustc
Browsers:
Chrome: 94.0.4606.81
Firefox: 93.0
Steps to reproduce
Please share code or minimal repo, and steps to reproduce the behavior.
Observed behavior
Build returns error.
Expected behavior
Build without problem. Missing }.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Route 53 Client - AWS SDK for JavaScript v3
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. You can use Route 53 to: Register domain...
Read more >Issues · aws/aws-sdk-js-v3 - GitHub
AWS Rekognition timeout error happening randomly guidance General information and guidance, answers to FAQs, or recommended best practices/resources.
Read more >Terraform AWS Provider Version 3 Upgrade Guide
The provider now relies on the default AWS Go SDK timeouts for interacting ... The custom service endpoints for Kinesis Analytics and Route...
Read more >aws-sdk-route53 - crates.io: Rust Package Registry
Do not use this SDK for production workloads. Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service....
Read more >aws_sdk_route53 - Rust - Docs.rs
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) ... App name that can be configured with an AWS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @oscarwest @VictorMorenoJimenez
Which TypeScript version are you using? Are you using TypeScript < 4.0? I think the error will go away if you switch to newer TypeScript version. We use a tool(downlevel-dts) to transpile newer TypeScript definitions syntax to older syntax. The tool could may generates invalid definitions.
Can you share the exact
@aws-sdk/client-route-53/dist-types/ts3.4/Route53.d.ts
content where it throws? So we can have a better help you find the root cause./cc @ajredniwja
I fixed this by finding that I was using yarn, which installs it’s own tsc
I was using yarn, which installs it’s OWN typescript.
88665a1e55c0:/src/cdk/single-ec2-dev> tsc -v Version 4.5.4 88665a1e55c0:/src/cdk/single-ec2-dev> yarn build yarn run v1.22.17 $ tsc -v Version 3.9.10
So it absolutely was the version bing different.
yarn add typescript yarn add v1.22.17 [1/4] 🔍 Resolving packages… [2/4] 🚚 Fetching packages… [3/4] 🔗 Linking dependencies…
✨ Done in 3.37s. 88665a1e55c0:~/src/cdk/single-ec2-dev> yarn build yarn run v1.22.17 $ tsc -v Version 4.5.4