title: Uncaught TypeError: Failed to resolve module specifier
body: <p>I'm trying to integrate editorjs (<a href="https://editorjs.io/" rel="nofollow noreferrer">https://editorjs.io/</a>) in my project then I downloaded the editor.js to my project and loaded it in my html page:</p>
  <pre><code>    &lt;script src='lib/editor.js'&gt;&lt;/script&gt;
  </code></pre>
  <p>And I added:</p>
  <pre><code>    &lt;script src='lib/myeditorloader.js'&gt;&lt;/script&gt;
  </code></pre>
  <p>Which contains:</p>
  <pre><code>    import EditorJS from '@editorjs/editorjs';
      const editor = new EditorJS('editorjs');
  </code></pre>
  <p>I got that error:</p>
  <pre><code>Uncaught SyntaxError: Cannot use import statement outside a module
  </code></pre>
  <p>I added <code>type='module'</code> to get  and as thing are never simple with js, I got this error:</p>
  <pre><code>Uncaught TypeError: Failed to resolve module specifier &quot;@editorjs/editorjs&quot;. 
  Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;.
  </code></pre>
  <p>I tried <code>import EditorJS from './editor.js';</code> but now I get:</p>
  <pre><code>Uncaught SyntaxError: The requested module './editor.js' does not provide an export named 'default'
  </code></pre>
  <p>Is editojs buggy or what ?</p>