title: Node.js - An error occurred during import third party library
body: <p>Guys I am still new to <code>Node.js</code> and facing a problem during importing a third-party module. The module name is <a href="https://www.npmjs.com/package/@azure/storage-blob" rel="nofollow noreferrer">@azure/storage-blob</a> and my <code>package.json</code> file is using <code>&quot;type&quot;: &quot;module&quot;</code> setting.</p>
  <p>When I try to import this module with the following syntax. I am getting an error.</p>
  <pre><code>import { BlobServiceClient } from &quot;@azure/storage-blob&quot;;
  
  SyntaxError: The requested module '@azure/storage-blob' does not provide an export named 'BlobServiceClient'
      at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)
      at async ModuleJob.run (internal/modules/esm/module_job.js:107:20)
      at async Loader.import (internal/modules/esm/loader.js:179:24)
  </code></pre>
  <p>But with this setting, this project is working fine on my other machine and I still don't understand it.</p>
  <p>When I use this syntax instead of directly import the error goes away.</p>
  <pre><code>import AzureStorageBlob from &quot;@azure/storage-blob&quot;;
  const { BlobServiceClient } = AzureStorageBlob;
  </code></pre>
  <p>Could you please help me to understand this issue?</p>