Closed ankon closed 4 months ago
FWIW: The only sane thing we could come up with that would not require us to essentially maintain your peer dependency mess is to switch to the yarn node-modules
linker, and take the performance hit on every build.
Closing, filed in the wrong repository: https://github.com/aws/aws-sdk-js-v3/issues/6258
Describe the bug
We've been using Yarn's PnP linking to speed up builds and generally try to enforce strict dependencies.
Recently we noticed that builds using
esbuild
failed when not marking the @aws-sdk packages as external:Building with AWS SDK v3 as external:
Building with AWS SDK v3 bundled into the result:
Expected Behavior
yarn install
properly installs without warnings.--external:@aws-sdk/*
and bundled cases.Current Behavior
See description: peer-dependency warnings, build failures.
Reproduction Steps
https://github.com/ankon/20240705-aws-sdk-v3-peer-deps:
Run
yarn
to reproduce peer dependency warnings; thenyarn build
to build using bundling oryarn build-external
to build with the AWS SDK marked as external.Possible Solution
No response
Additional Information/Context
This seems to come up a lot of times, our quick search found:
SDK version used
^3.609.0
Environment details (OS name and version, etc.)
Fedora 40, yarn.