TypeError: os__WEBPACK_IMPORTED_MODULE_1__.type is not a function

I’m working with "uploading image to Azure Blob Storage from Ionic/Angular app". Its working fine in browsers, iOS devices and android devices. However, its electron version is not working in windows and MAC.

Attached is the exact error:
Error

I’m using "npm i @azure/storage-blob" package in Ionic/Angular app. Here is the function in which error occurs

 return new BlobServiceClient(
        `https://${this.ACCOUNT}.blob.core.windows.net?${this.SAS_KEY}`
    ).getContainerClient(this.CONTAINER);

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.