title: Typescript Modules: Uncaught SyntaxError: Unexpected token import when importing module
body: <p>Setup: </p>
  
  <ul>
  <li>VisualStudio 2017 </li>
  <li>asp.net MVC app</li>
  <li>Typescript: ECMAScript 6, Module System: ES 2015 (don't mind
  changing those two, if my existing code    will still work)</li>
  </ul>
  
  <p>Problem:</p>
  
  <p>I've created many modules in my project. There are also nested modules and everything seems to work. But when starting my app, the console shows: <strong>Uncaught SyntaxError: Unexpected token import</strong></p>
  
  <p>So it doesn't know the <strong>import</strong> statement in my index.ts file (which is not a module!)</p>
  
  <p>index.ts:</p>
  
  <pre><code>import { MyModule} from "./Modules/MyModule";
  
  $().ready(function ()
  {
     // some code
  });
  </code></pre>
  
  <p>I've tried many things (changing Module System, ECMAScript version, etc.) and i cannot get it work. Without the import statement my code works, but I want to use TS modules. Any solutions?</p>