Closed suryavaddiraju closed 6 months ago
Viewing the contents of https://cdn.jsdelivr.net/npm/@smithy/hash-blob-browser@2.0.13/+esm, it seems that they failed to build the package.
The artifacts that we publish are present at https://www.npmjs.com/package/@smithy/hash-blob-browser?activeTab=code.
This seems to be a problem with jsdelivr's build process, you may want to open an issue with them instead, since the page does not provide any clues as to why it is failing.
Is there any alternative for importing @aws-sdk/client-SERVICE through any other cdn for browser ES6, what about this https://sdk.amazonaws.com
where this serves only v2 or does it support v3. do aws distribute the prebuilt webpacks as recommended in https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/webpack.html, As I could not get the reference of using aws-sdk v3 in html through cdn link of sdk.amazon.com
Request: In aws documentation They are directly making import statements in javascript without referencing how they got the module in html importmap reference., We need the @aws-sdk/client-SERVICENAME@>3.0.0
es6 offical cdn from aws sdk team for use in browser environment as like how aws sdk javascript v2 was distributed
Raised Issue with jsdeliver, you can access the issue from the below link https://github.com/jsdelivr/jsdelivr/issues/18560#issue-2229069985
Hi @suryavaddiraju ,
I discussed this with the JS SDK team and there is no plan at the moment to distribute the SDK via a CDN. Right now <1% of all the SDK consumers of v2 SDK use CDN therefore there is no plan to support it going forward.
if you wish, you can host your own SDK CDN by uploading the SDK artifacts to S3 and serving it from your own Cloudfront distribution.
Since the original action item for this issue was for jsdelivr and not the SDK team, I'm going to go ahead and close this ticket. Thanks again for taking the time and reaching out.
If you need anything else please feel free to open another issue.
All the best, Ran~
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
I am using js deliver cdn for importing aws sdk in my project while in this s3 client the chrome browser is throwing an error that
while importing the s3 client using this module
SDK version number
@aws-sdk/client-s3@3.549.0
Which JavaScript Runtime is this issue in?
Browser
Details of the browser/Node.js/ReactNative version
Chrome Version 123.0.6312.106 (Official Build) (64-bit) on Windows 10
Reproduction Steps
index.html
index.js
Observed Behavior
Uncaught SyntaxError: The requested module '/npm/@smithy/hash-blob-browser@2.0.13/+esm' does not provide an export named 'blobHasher' (at jsdelivr-header.js:7:1)
Expected Behavior
Need to print s3 get object data of the body
Possible Solution
issue at the @smithy/hash-blob-browser package where it needs to be modified for es6 export or s3-client blobHasher import need to be correctly done
Additional Information/Context
NA