title: Chrome 61: Unexpected token import
body: <p>Running Chrome 61 which is <a href="https://www.chromestatus.com/feature/5365692190687232" rel="noreferrer">supposed to support module loading</a> with <code>import</code>.</p>
  
  <p>Indeed Paul's <a href="https://paulirish.github.io/es-modules-todomvc/" rel="noreferrer">demo</a> works for me. However, when I try it myself I get a JS error "Unexpected token import". Chrome seems to balk at <code>import</code>:</p>
  
  <p>test.html</p>
  
  <pre><code>&lt;!doctype html&gt; 
  &lt;html&gt;
  &lt;body&gt;
  &lt;script src="test.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>test.js:</p>
  
  <pre><code>import {hello} from './something.js'
  console.log(hello())
  </code></pre>
  
  <p>something.js</p>
  
  <pre><code>export {hello}
  function hello() {
      return "hello world"
  }
  </code></pre>
  
  <p>Why does Chrome not understand "import"</p>