title: TypeScript ES6 import module "File is not a module error"
body: <p>I am using TypeScript 1.6 with ES6 modules syntax.</p>
  <p>My files are:</p>
  <p><strong>test.ts:</strong></p>
  <pre><code>module App {
    export class SomeClass {
      getName(): string {
        return 'name';
      }
    }
  }
  </code></pre>
  <p><strong>main.ts:</strong></p>
  <pre><code>import App from './test';
  
  var a = new App.SomeClass();
  </code></pre>
  <p>When I am trying to compile the <code>main.ts</code> file I get this error:</p>
  <blockquote>
  <p><strong>Error TS2306: File 'test.ts' is not a module.</strong></p>
  </blockquote>
  <p>How can I accomplish that?</p>