title: requireJS “Uncaught TypeError: undefined is not a function”
body: <p>I have been using requirejs on couple projects, and today is the first time I got this problem and not sure how to fix it. I am using requirejs and tyepscript, I can't really tell what's wrong here. Can someone take a look?</p>
  
  <p>Here is my main.ts:</p>
  
  <pre><code>///&lt;reference path="../lib/require/requirejs.d.ts"/&gt;
  ///&lt;reference path="TestClass.ts"/&gt;
  require.config(
      {
          baseUrl: 'js',
          paths: {
              puremvc: 'lib/puremvc/puremvc_standard_1.0_min'
          }
      }
  );
  require(
      [
          'puremvc',
          'sim/TestClass'
      ],
      function (TestClass ) {
          var test = new TestClass();
          test.logMsg("WHO AM I");
      }
  );
  </code></pre>
  
  <p>and this is my TestClass.ts</p>
  
  <pre><code>class TestClass{
      constructor(){
          console.log ("TestClass constructor")
      }
     public logMsg(msg:string){
          console.log ("TestClass.log(): " + msg);
      }
  }
  export = TestClass;
  </code></pre>
  
  <p>and my sim.html looks like this one</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Simulation Tester&lt;/title&gt;
  &lt;script src="js/lib/puremvc/puremvc_standard_1.0_min.js"&gt;&lt;/script&gt;
  &lt;script data-main="js/sim/main.js" src="js/lib/require/require.js" &gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body &gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is my folder structure:</p>
  
  <pre><code>- root 
      - sim.html
      - js
          - lib
              - require (containt requirejs)
          - sim
              - main.ts
              - TestClass.ts
  </code></pre>
  
  <p>Any idea?</p>