Closed nypinstripes closed 3 years ago
I have the same problem.
I'm running into this as well. It started happening when I moved from aws-amplify v3.3.23 to v4.3.4.
Upgraded from aws-amplify
v3.3.3 to v4.3.5 and I'm now seeing the same issue. I have no direct dependency on tslib
within my project
I got this same problem
Same here @chrisbonifacio @evcodes
Seems to be an issue specific to the new geo module of aws-amplify, which is only available starting with 4.3.0.
I downgraded (npm i aws-amplify@4.2.11) and the issue went away. Going to hold there and look into it more.
It appears that @aws-amplify/geo introduced in 4.3.0 has a dependency on @aws-sdk/client-location: 3.22.0.
@aws-sdk/client-location: 3.22.0 has the dependency on tslib 2.0.0 but uses __spreadArray which isn't available in that version of tslib.
npm is showing that @aws-sdk/client-location latest is 3.41.0 and that version has the newer tslib 2.3.0. reference which does have __spreadArray (https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-location/package.json)
Update: confirmed that @aws-sdk/client-location was released and 5 days later the tslib version was bumped to fix this exact issue: https://github.com/aws/aws-sdk-js-v3/issues/2587
So maybe the @aws-sdk/client-location dependency in @aws-amplify/geo needs to get bumped, at least enough to include that fix??
We just shipped aws-amplify@4.3.8
, which uses @aws-amplify/geo@1.1.8
and updates @aws-sdk/client-location
to version 3.41.0
. This should solve the problem here, but if you do still see this, please let us know!
Thanks
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
There are 49 new build warnings in the webpack output, due to aws-sdk signature v3.
https://github.com/aws/aws-sdk-js/issues/3900
Expected behavior
No build warnings.
Reproduction steps
Run webpack5 in devmode with the latest aws-sdk.
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
https://github.com/aws/aws-sdk-js/issues/3900