title: rxjs module not found in VS2019 but is found with the tsc cli
body: <p>An old angularjs project I have added TypeScript to with the idea of moving to Angular 2+ eventually.</p>
  
  <p>I want to use rxjs observables in my TypeScript code but trying to do so has some unusual behaviour. Visual studio 2019 cannot find the typings but visual studio code can.
   When compiled via tsc directly it builds fine and running it from visual studio 2019 is also working as expected, but when writing code <a href="https://i.stack.imgur.com/VyJcP.png" rel="nofollow noreferrer">visual studio cannot find it</a> with a "cannot find module 'rxjs'" message and no type information is displayed. </p>
  
  <p>I installed rxjs via <code>npm install rxjs --save</code> and can see some typing files in the mode_modules/rxjs folder.</p>
  
  <p>My tsconfig is:</p>
  
  <pre><code>{
    "compilerOptions": {
      "sourceMap": true,
      "noImplicitAny": false,
      "module": "es6",
      "target": "es5",
      "allowJs": true,
      "lib": [ "dom", "es7" ],
      "moduleResolution": "node"
    },
    "include": [
      "app"
      ],
    "exclude": ["**/lib"]
  }
  
  </code></pre>
  
  <p>package.json dependencies</p>
  
  <pre><code> "dependencies": {
      "@types/angular": "^1.7.0",
      "natives": "^1.1.6",
      "rxjs": "^6.5.5",
      "rxjs-compat": "^6.5.5"
    },
  </code></pre>
  
  <p>If I import it directly from the directory it works.</p>
  
  <pre><code>import { Observable } from './../../../node_modules/rxjs/internal/Observable';
  </code></pre>
  
  <p>I am not sure where to look next, I have spent quite a bit of time trying to search for a solution.</p>