question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm build: typescript version wrong

See original GitHub issue

Describe the bug

reference: https://catalog.workshops.aws/eks-blueprints-for-cdk/en-US/030-single-eks-cluster/031-create-a-cluster/1-create-a-cdk-project

  1. npm run build error
  2. blueprints pipeline build stage also error

Error Info:

Admin:~/environment/my-eks-blueprints (master) $ npm run build

> my-eks-blueprints@0.1.0 build
> tsc

node_modules/@types/lodash/common/object.d.ts:1025:21 - error TS1110: Type expected.

1025         : K extends `${number}`
                         ~~~

node_modules/@types/lodash/common/object.d.ts:1026:19 - error TS1005: ':' expected.

1026             ? '0' extends keyof T
                       ~~~~~~~

node_modules/@types/lodash/common/object.d.ts:1026:33 - error TS1005: ';' expected.

1026             ? '0' extends keyof T
                                     ~

node_modules/@types/lodash/common/object.d.ts:1028:22 - error TS1005: ';' expected.

1028             : number extends keyof T
                          ~~~~~~~

node_modules/@types/lodash/common/object.d.ts:1028:36 - error TS1005: ';' expected.

1028             : number extends keyof T
                                        ~

Expected Behavior

build

Current Behavior

build error

Reproduction Steps

mkdir my-eks-blueprints
cd my-eks-blueprints
cdk init app --language typescript
npm i @aws-quickstart/eks-blueprints
npm run build

Possible Solution

npm i typescript@latest

Additional Information/Context

No response

CDK CLI Version

2.43.0 (build 487870a)

EKS Blueprints Version

1.3.0

Node.js Version

v16.18.0

Environment details (OS name and version, etc.)

cloud9(aws-cli/1.24.10 Python/3.6.12 Linux/4.14.294-150.533.amzn1.x86_64 botocore/1.26.10)

Other information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
youngjeong46commented, Nov 3, 2022

The workshop instructions are fixed as shown here and here. Closing the issue for now. @tyyzqmf please re-open the issue if you see any lingering errors.

0reactions
shapirov103commented, Nov 3, 2022

Getting started is updated: https://aws-quickstart.github.io/cdk-eks-blueprints/getting-started/ @youngjeong46 we can close it out once the workshop instructions are fixed, unless there is a separate tracking for the workshop updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

typescript version mismatch - Stack Overflow
I resolved the issue by setting the typescript version in my package.json to ~4.6.2 . This ensures that npm upgrades my typescript package...
Read more >
[Solved] "npm run build" failed due to a typescript version check
I've followed the steps to build the app but the command "npm run build" failed and raised the following error: Error: The Angular...
Read more >
TypeScript Compiling with Visual Studio Code
This extension automatically replaces VS Code's built-in TypeScript version with the latest TypeScript nightly build. Just make sure you switch back to using...
Read more >
typescript - npm
TypeScript is a language for application scale JavaScript development. Latest version: 4.9.4, last published: 20 days ago.
Read more >
How to set up TypeScript
If you are using Node.js, you want the npm version. If you are using MSBuild in your project, you want the NuGet package...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found