title: Can't import axios to chrome extension background script
body: <p>I'm trying to import the axios module to the background script of a chrome extension and I'm getting the following error:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: The requested module './node_modules/axios/lib/axios.js' does not provide an export named 'default'</p>
  </blockquote>
  
  <p>Since chrome extensions need to use the script tag to use external modules, I'm doing it the following way:</p>
  
  <h3>manifest.json</h3>
  
  <pre><code>"background": {
    "page": "background.html",
    "persistent": false
  },
  ...
  </code></pre>
  
  <h3>background.html</h3>
  
  <pre><code>&lt;script type="module" src="./background.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <h3>background.js</h3>
  
  <pre><code>import axios from './node_modules/axios/lib/axios.js';
  ...
  </code></pre>
  
  <p>I also tried to use the named import with the code below but got a similar message (the 'default' was switched with 'axios')</p>
  
  <pre><code>import { axios } from './node_modules/axios/lib/axios.js';
  </code></pre>