An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
April 25, 2022 02:51 pm GMT
Original Link: https://dev.to/ilumin/vite-build-failed-on-project-with-aws-sdk-14dk
Vite build failed on project with aws-sdk
Vite work greate on local development.
But I got this error when build.
'request' is not exported by __vite-browser-external, imported by node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-imds/dist/es/remoteProvider/httpRequest.js
The solution is put some script on index.html
<script>var global = global || windowvar Buffer = Buffer || []var process = process || { env: { DEBUG: undefined }, version: [] }</script>
And that's it, all sorted!
Thanks community.
Original Link: https://dev.to/ilumin/vite-build-failed-on-project-with-aws-sdk-14dk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To