title: javascript es6 import "expects exactly one argument"
body: <p>I'm trying to use es6 modules but I'm hitting an error:</p>
  <blockquote>
  <p>SyntaxError: Unexpected identifier 'GameObject'. import call expects
  exactly one argument.</p>
  </blockquote>
  <p>This is in Safari 11 on macOS 10.13, by the way.</p>
  <p>Here's my module:</p>
  <pre><code>export class GameObject {
      //code
  }
  
  export class GameLoop {
      //code
  }
  </code></pre>
  <p>relevant html:</p>
  <pre><code>&lt;body&gt;
      &lt;script type=&quot;module&quot; src=&quot;gameFoundation.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;gameTest.js&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  <p>and the script that tries to use the module, which gives the aforementioned error on line 1:</p>
  <pre><code>import GameObject from &quot;./gameFoundation.js&quot;
  import GameLoop from &quot;./gameFoundation.js&quot;
  
  class Rect extends GameObject {
      //code
  }
  </code></pre>
  <p>I'm new to JavaScript, so I imagine I'm getting something basic wildly wrong. Any help would be much appreciated. </p>