Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Could not resolve "@aws-sdk/client-s3"

オープン 初心者向け
#356 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, javascript, node.js

調査の方向性

まず、@aws-sdk/client-s3 の peerDependency と devDependency に対応するパッケージマニフェストのエントリを見つけ、対応する @aws-sdk/s3-request-presigner のバージョンと比較します。client-s3 の peer 範囲をテスト済みの依存関係に一致するよう更新し、現在失敗している npm build を実行します。依存関係の宣言に一貫性があり、ビルドでパッケージを解決できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Issue

@aws-sdk/client-s3 peerDependency range out of sync with devDependency

Our team encountered this error after bumping lambda-api to the latest version. The same issue did not occur with @aws-sdk/s3-request-presigner, which has consistent versions across peer and dev dependencies.

✘ [ERROR] Could not resolve "@aws-sdk/client-s3"

    ../node_modules/lambda-api/dist/esm/lib/s3-service.js:19:42:
      19 │         const { S3Client } = await import('@aws-sdk/client-s3');
         ╵                                           ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@aws-sdk/client-s3" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle. You can also add ".catch()" here to
  handle this failure at run-time instead of bundle-time.

1 error
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path /Users/aichi.chang/krakenflex/schedules/schedules-api
npm error workspace [email protected]
npm error location /Users/aichi.chang/krakenflex/schedules/schedules-api
npm error command failed

peerDependencies declares @aws-sdk/client-s3: "^3.470.0" but devDependencies pins 3.1106.0. Since the library is developed and tested against 3.1106.0, consumers constrained to ^3.470.0 may hit runtime or build failures. @aws-sdk/s3-request-presigner is at 3.470.0 in both — which is why only client-s3 is affected.

Would it be possible to bump the @aws-sdk/client-s3 peerDependency to "^3.1106.0"?

Environment

npm: 10
node: 22

Workaround

We made @aws-sdk/client-s3 as an external package in the build command resolves the error, but feels like a workaround rather than a proper fix.

主要言語
JavaScript
スター
1.5k
フォーク
127
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jeremydaly/lambda-api のほかの issue

jeremydaly/lambda-api の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。