Import statements are “hiding” my js functions, What am I doing wrong?

The function uploadToBucket can no longer be referenced or found when adding the imports.

import { PutObjectCommand, S3Client, GetObjectCommand, ListObjectsV2Command } from ("@aws-sdk/client-s3");
import { getSignedUrl, S3RequestPresigner } from ("aws-sdk/s3-request-presigner");
import {axios} from ("axios");


    // Upload a file to Amazon S3
    async function uploadToBucket(options){
        
        console.log("[RingCentral App Server] Options are ", options);

        try {
            console.log("[RingCentral App Server] Starting cloud upload...");

            const start = Date.now();
            let s3Client;

            // Depending on the cloudProvider, set up the S3 client configuration
            if (options.cloudProvider === "AWS") {
                console.log("[RingCentral App Server] Configuring for AWS S3...");
                s3Client = new S3Client({
                    region: options.iparams.recordingBucketRegionAWS,
                    credentials: {
                        accessKeyId: options.iparams.recordingBucketAccessKey,
                        secretAccessKey: options.iparams.recordingBucketSecretKey,
                    },
                });

            } else if (options.cloudProvider === "GCS") {
                console.log("[RingCentral App Server] Configuring for Google Cloud...");
                s3Client = new S3Client({
                    region: options.iparams.recordingBucketRegionGC,
                    endpoint: "https://storage.googleapis.com",
                    credentials: {
                        accessKeyId: options.iparams.recordingBucketAccessKey,
                        secretAccessKey: options.iparams.recordingBucketSecretKey,
                    },
                });
            }

            console.log("[RingCentral App Server] Fetching the recording data...");
            const recordingResponse = await axios.get(options.recordingUri, {
                decompress: false,
                responseType: "arraybuffer",
            });

            console.log('[RingCentral App Server] Received recording response.', recordingResponse);

            const recordingFile = recordingResponse.data;

            console.log("[RingCentral App Server] Generating a random ID for the file key...");

            // Created at: createRecordingInfoObject(contactid) -> recording-{contactId}-{mmss}-{yyyyMMdd}.mp3
            const key = options.fileName;
            console.log(`[RingCentral App Server] Generated key for file: ${key}`);

            console.log("[RingCentral App Server] Sending upload command...");

            const command = new PutObjectCommand({ Bucket: options.iparams.recordingBucketName, Key: key });
            let signedUri = await getSignedUrl(s3Client, command, { expiresIn: 3600 });
            let resp = await axios.put(signedUri, recordingFile);

            console.log("[RingCentral App Server] Response from uploading recording file: ", resp);
            console.log("[RingCentral App Server] File uploaded successfully!");

            const end = Date.now();

            console.log(`[RingCentral App Server] Execution time: ${end - start} ms`);
            console.log("[RingCentral App Server] Cloud upload completed successfully.");

         //   renderData(null, "Cloud upload completed successfully");

        } catch (err) {
            console.error("[RingCentral App Server] Error encountered during cloud upload:", err);
          //  renderData(err);
       }
    }

Aside from that I am also receivin g the following error when loading the JS file in our browser app:
Refused to execute script from ‘http://localhost:10001/iframe/agent/scripts/openai/bucketHelper.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

I do not know what is going wrong because I thought you could use import statements like this.

I have tried to use required and scripts refences in the html but it did not work.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật