You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amplify apparently has a deep dependency tree that eventually requires @aws-sdk/credential-provider-node. This is obviously not ideal, since Amplify is intended to be used in the browser.
Expected behavior
I would expect no Amplify dependencies to make Node-specific references.
The text was updated successfully, but these errors were encountered:
ffxsam
changed the title
Amplify depends on Node-specific code in @aws-sdk/credential-provider-node
Amplify unusable in Vue 3 (Vite) projects (depends on Node-specific code in @aws-sdk/credential-provider-node)
Aug 22, 2022
Hi @ffxsam, I pulled down the repo and show that the solution referenced here: #9639 (comment) allows the app to build in both development and production. I've cloned your project and added the patches in the appropriate place kevinold/repro-vite-amplify@4d6b422
This issue has been resolved through the solution provided by @kevinold. We are working with the AWS SDK team to minimize the need for updating the Vite config even further throughout this year.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
See issue vitejs/vite#9715
Amplify apparently has a deep dependency tree that eventually requires
@aws-sdk/credential-provider-node
. This is obviously not ideal, since Amplify is intended to be used in the browser.Expected behavior
I would expect no Amplify dependencies to make Node-specific references.
Reproduction steps
Reproduction: https://github.com/ffxsam/repro-vite-amplify
yarn install
yarn build
Code Snippet
No response
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
No response
The text was updated successfully, but these errors were encountered: