title: Typescript - "Cannot compile modules unless the '--module' flag is provided."
body: <p>In a typescript project (using tsc 1.6.2, sublime 3 with the Typescript plugin 0.1.8) I have this typescript file:</p>
  
  <pre><code>/// &lt;reference path="../../typings/estree/estree.d.ts" /&gt;
  
  export interface NodeWorker {
  
     nodeTypeFilters: Array&lt;string&gt;;
  
     enterNode(node: ESTree.Node, parent?: ESTree.Node): void;
     leaveNode(node: ESTree.Node, parent?: ESTree.Node): void;
  }
  </code></pre>
  
  <p>I also have this tsconfig.json:</p>
  
  <pre><code>{
     "compilerOptions": {
         "module": "commonjs",
         "noImplicitAny": true,
         "listFiles": true,
         "removeComments": true,
         "preserveConstEnums": true,
         "rootDir": "./src",
         "outDir": "../built/",
         "sourceMap": true,
     }
  }
  </code></pre>
  
  <p>I have several other .ts files, which utilize imports and exports, but only on the file with the NodeWorker I get the error: "Cannot compile modules unless the '--module' flag is provided." on the export statement.</p>
  
  <p>I cannot see the problem.</p>