aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.42k stars 2.12k forks source link

Remove node build-ins. #9350

Closed ivands closed 6 months ago

ivands commented 2 years ago

Is this related to a new or existing framework?

New framework

Is this related to a new or existing API?

Authentication

Describe the feature you'd like to request

Trying to use amplify is a pain right now because for some reason it uses node build-in libraries while it is supposed to work in the browser. The next generation of build tools (like vite) don't include node's build-in libraries anymore. Amplify should stop using them and migrate.

Describe the solution you'd like

Stop using node build-in libraries

jiahao-c commented 2 years ago

This problem has to be fixed by aws-sdk, not Amplify. See https://github.com/aws/aws-sdk-js/issues/3673

cwomack commented 6 months ago

With the release of the latest major version of Amplify (aws-amplify@>6) and in the latest version of v5 (v5.3.18+), this issue should now be resolved! Please refer to our release announcement, migration guide, and documentation for more information on the v6 release.

Feel free to reply back if this isn't the case or we missed something!