title: Typescript definition breeze.d.ts - declare modifier not allowed for code already in an ambient context
body: <p>Suddenly VS2012 stopped building javascript files from my typescript files. Options look ok. Also tried do uninstall web essentials without success.</p>
  
  <p>Only when I completely restart VS the JS files are generated.</p>
  
  <p><strong>Edit1:</strong> seems that breeze.d.ts makes the problems. I am getting the error as soon as i reference it:</p>
  
  <pre><code>/typings/breeze/breeze.d.ts(213,5): error TS1038: 'declare' modifier not allowed for code already in an ambient context.
  </code></pre>
  
  <p><strong>Edit2:</strong> also seems that typescript has still (v0.9) many bugs concerning references and paths.
  For example you can't use spaces as you want</p>
  
  <p>right:</p>
  
  <pre><code>/// &lt;reference path="typings/jquery/jquery.d.ts" /&gt;
  </code></pre>
  
  <p>wrong:</p>
  
  <pre><code>/// &lt;reference path= "typings/jquery/jquery.d.ts" /&gt;
  </code></pre>