CDK CLI and aws-cdk-lib version mismatch leads to deployment errors
まだ誰も着手していません。
- #76 @lp6moon による — マージされずにクローズ
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- aws, typescript
- 領域
- cloud, infrastructure
調査の方向性
サンプルの package.json を確認し、aws-cdk CLI と aws-cdk-lib のバージョンを比較します。バージョンを揃えたら、npx cdk bootstrap とデプロイコマンドを実行して、スキーマの不一致が発生しなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The example package.json uses different versions for aws-cdk (CLI) and aws-cdk-lib (library). For example:
"devDependencies": {
"aws-cdk": "2.121.1"
},
"dependencies": {
"aws-cdk-lib": "2.189.1"
}
This version mismatch causes deployment errors such as:
This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly schema version mismatch: Maximum schema version supported is 36.0.0, but found 41.0.0)
Expected behavior
The project should work out of the box without version mismatch errors. The aws-cdk CLI version should match the aws-cdk-lib version in package.json to avoid schema incompatibility.
Desktop (please complete the following information):
- OS & version: [Any]
- Node version (
node -v): [Any recent LTS] - npm version (
npm -v): [Any recent]
Additional context
See CDK documentation for details: https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-typescript.html#typescript-dependencies
Suggested fix:
Align the aws-cdk devDependency version with the aws-cdk-lib dependency version in the example package.json (e.g., both set to 2.189.1). This will help users avoid deployment errors related to schema version mismatch.
I tried updating both packages to the latest versions:
"aws-cdk": "^2.1031.0",
"aws-cdk-lib": "^2.221.0"
After that, running npx cdk bootstrap succeeded without any issues.
- 主要言語
- TypeScript
- スター
- 276
- フォーク
- 151
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws-samples/image-optimization のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aws-samples/image-optimization#79 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
bug wontfix
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aws-samples/image-optimization#65 · コメント 1 件 ·
-
[Feature request] Supply original image from original S3 bucket再び着手できるかも @achrafsouk が 429 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
aws-samples/image-optimization#47 · コメント 1 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
aws-samples/image-optimization#33 · コメント 11 件 ·
aws-samples/image-optimization の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farbenmeer/tapi#531 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceオープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Tenant
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
backnotprop/plannotator#1784 ·
メンテナーはふだん 1 日以内に返信