title: typescript error: TS2304: Cannot find name '$'
body: <p>The statement</p>
  
  <pre><code> x = $('#msgBox_' + scope.boxId).position().left;
  </code></pre>
  
  <p>generates an</p>
  
  <blockquote>
    <p>error TS2304: Cannot find name '$'</p>
  </blockquote>
  
  <p>although <code>jquery</code> and <code>@types</code> are installed in the node_modules folder. </p>
  
  <p>My tsconfig.json looks like that:</p>
  
  <pre><code>{
    "compilerOptions": {
      "module": "commonjs",
      "target": "es5",
      "sourceMap": true,
      "moduleResolution": "node",
      "declaration": true
    },
    "exclude": [
      "node_modules"
    ]
  }
  </code></pre>
  
  <p>How can I fix that? </p>