npm build: typescript version wrong
See original GitHub issueDescribe the bug
npm run build
error- 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:
- Created a year ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >
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
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.
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.