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
This is a dependency module for @aws-sdk/client-s3 while importing in the browser through cdn links I got an error in browser
Error in Browser
Uncaught SyntaxError: The requested module '/npm/@smithy/hash-blob-browser@2.2.0/+esm' does not provide an export named 'blobHasher' (at jsdelivr-header.js:7:1)
Also the output when importing the pacvkage is
/**
* Failed to bundle using Rollup v2.79.1: failed to resolve an internal import.
* If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr
*/
throw new Error('Failed to bundle using Rollup v2.79.1: failed to resolve an internal import. If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr');
Expected Output we need when we import @smithy/hash-blob-browser
import { blobReader } from "@smithy/chunked-blob-reader";
export const blobHasher = async function blobHasher(hashCtor, blob) {
const hash = new hashCtor();
await blobReader(blob, (chunk) => {
hash.update(chunk);
});
return hash.digest();
};
I checked the documentation to understand that the issue I am reporting is not normal behavior.
I understand that not filling out this template correctly will lead to the issue being closed.
Additional content
Already raised the issue with @AWS-SDK team and they concluded that the issue is with jsdeliver packing style
The issue can be tracked from this below link aws/aws-sdk-js-v3#5969 (comment)
The text was updated successfully, but these errors were encountered:
Description
This is a dependency module for
@aws-sdk/client-s3
while importing in the browser through cdn links I got an error in browserError in Browser
Also the output when importing the pacvkage is
Expected Output we need when we import
@smithy/hash-blob-browser
Affected jsDelivr links
Response headers
Information
Requisites
Additional content
Already raised the issue with @AWS-SDK team and they concluded that the issue is with jsdeliver packing style
The issue can be tracked from this below link
aws/aws-sdk-js-v3#5969 (comment)
The text was updated successfully, but these errors were encountered: