title: Cannot find TypeScript Modules
body: <p>In a very large Mixed TS/JS project, using VSCode, I get the following errror.</p>
  
  <pre><code>Cannot find module 'shared/common/enums/httpMethod'.ts(2307)
  </code></pre>
  
  <p>The app builds successfully, and our <code>pre-commit</code> hook, which runs eslint and tests isn't failing.</p>
  
  <p>This happens in all <code>.ts</code> files that I import <code>.ts</code> files. I found a couple of answers on the matter, but none helped.</p>
  
  <p>What I did so far includes:</p>
  
  <ol>
  <li>Change the workspace version of TypeScript in VSCode from the bottom Status Bar in the Version.</li>
  <li>Link th e<code>vscode.d.ts</code> file from the node_modules with this command
  ln -s /home/work/mymodule/node_modules/vscode.d.ts /usr/share/code/resources/app/out/vs/vscode.d.ts</li>
  <li>NPM Install, even remove the node_modules and restarted the VSCode</li>
  </ol>
  
  <p>Here is the <code>.tsconfig</code> file, that we use. Occasionally on the team, other members get this error, but after <code>npm install</code> and restarting VSCode they are just fine.</p>
  
  <pre><code>{
    "compilerOptions": {
      "baseUrl": "./src",
      "jsx": "react",
      // Target latest version of ECMAScript.
      "target": "esnext",
      // Search under node_modules for non-relative imports.
      "moduleResolution": "node",
      // Process &amp; infer types from .js files.
      "allowJs": true,
      // Don't emit; allow Babel to transform files.
      "noEmit": true,
      // Enable strictest settings like strictNullChecks &amp; noImplicitAny.
      "strict": true,
      // Disallow features that require cross-file information for emit.
      "isolatedModules": true,
      // Import non-ES modules as default imports.
      "esModuleInterop": true,
      "skipLibCheck": true
    },
    // Import custom typings
    "include": ["src/shared/**/*", "./typings"]
  }
  </code></pre>
  
  <p>This is not a problem with <code>.tsconfig</code>. I researched it, and we have the correct settings. Just putting it out there, for more info on the matter. If someone has the same problem as me, please post the answer or a link to it. Thanks!!</p>