title: TS7016: Could not find a declaration file for module 'faker/locale/en_CA'
body: <p>I'm getting this error:</p>
  
  <blockquote>
    <p>TS7016: Could not find a declaration file for module 'faker/locale/en_CA'. '.../myproject/node_modules/faker/locale/en_CA.js' implicitly has an 'any' type.</p>
  </blockquote>
  
  <p>With this code:</p>
  
  <pre><code>import * as faker from 'faker/locale/en_CA';
  </code></pre>
  
  <p>The thing is, I installed <code>@types/faker</code>, and I can see that <code>node_modules/@types/faker/index.d.ts</code> does in fact include:</p>
  
  <pre><code>declare module "faker/locale/en_CA" {
      export = fakerStatic;
  }
  </code></pre>
  
  <p>So the module <em>has</em> been declared, but TS can't find it for some reason.</p>
  
  <p>Here's my tsconfig:</p>
  
  <pre><code>{
      "compilerOptions": {
          "strict": true,
          "importHelpers": false,
          "inlineSources": true,
          "noEmitOnError": true,
          "pretty": true,
          "module": "commonjs",
          "noImplicitAny": true,
          "suppressImplicitAnyIndexErrors": true,
          "removeComments": true,
          "preserveConstEnums": false,
          "sourceMap": true,
          "lib": ["es2017","esnext.asynciterable"],
          "skipLibCheck": true,
          "outDir": "dist",
          "target": "es2018",
          "declaration": true,
          "types" : ["node"],
          "resolveJsonModule": true,
          "esModuleInterop": false,
          "baseUrl": ".",
          "paths": {
              "*": ["types/*"]
          }
      },
  
      "files": [
          "src/main"
      ],
      "exclude": [
          "node_modules"
      ]
  }
  </code></pre>
  
  <p>Am I missing something?</p>
  
  <hr>
  
  <p>Note that</p>
  
  <pre><code>import * as faker from 'faker';
  </code></pre>
  
  <p>Works perfectly fine.</p>
  
  <p>Both VSCode and PhpStorm can find <code>'faker/locale/en_CA'</code> no problemo, it's just <code>tsc</code> that can't.</p>