title: VSCode IntelliSense for NativeScript Cannot Find Module 'ui/frame'
body: <p>I am new to NativeScript, new to VSCode and new to TypeScript definitions and am experiencing difficulties getting setup for VSCode to perform autocompletion through IntelliSense for modules required from tns-core-modules. </p>
  
  <p>The dependencies from my package.json:</p>
  
  <pre><code>"dependencies": {
      "lodash": "^4.17.4",
      "nativescript-theme-core": "1.0.4",
      "tns-core-modules": "3.2.0"
  }
  </code></pre>
  
  <p>IntelliSense for lodash works perfectly as expected. However, IntelliSense for anything from tns-core-modules does not work.</p>
  
  <p>I created a project from the blank-template in NativeScript's Sidekick. After googling around I added a jsconfig.json as follows:</p>
  
  <pre><code>{
      "compilerOptions": {
          "checkJs": true,
          "target": "ES6",
          "allowSyntheticDefaultImports": true
      },
      "include": [
          "app/**/*"
      ]
  }
  </code></pre>
  
  <p>CheckJS shows me this error in home-page.js</p>
  
  <p><a href="https://i.stack.imgur.com/gbIYo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gbIYo.png" alt="enter image description here"></a></p>
  
  <p>Hovering over the error it reads:</p>
  
  <pre><code>[js] Cannot find module 'ui/frame'.
  </code></pre>
  
  <p>I tried to do various things that I honestly, just don't understand like:</p>
  
  <pre><code>/// &lt;reference path="../../node_modules/tns-core-modules/tns-core-modules.d.ts" /&gt;
  /// &lt;reference path="../../node_modules/tns-core-modules/ui/frame/frame.d.ts"/&gt;
  </code></pre>
  
  <p>My understanding is that because "ui/frame" is not in the package.json, but nativeScript intelligently extracts the appropriate module from tns-core-modules based on what platform it's building for... </p>
  
  <p>The big question is: How do you get VSCode to know about the proper mappings and make the connection between ui/frame and the appropriate "frame.d.ts". </p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT: 
  I wanted to update any readers and let them know that I am not and do not want to write TypeScript code, but I do want VSCode to interpret the typescript definitions properly.</p>