title: TS7016: TypeScript don't see plain .js file
body: <p>I got below error when tried to import some variables from plain <code>.js</code> file (<code>JsModuleForStaticImport.js</code>). Similar <code>.ts</code> loads without error.</p>
  
  <pre><code>TS7016: Could not find a declaration file for module './StaticallyImportedModules/JsModuleForStaticImport'.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zGkUj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zGkUj.png" alt="enter image description here"></a></p>
  
  <p>I started from the minimal TS config:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es6",
      "module": "ESNext",
      "strict": true
    }
  }
  </code></pre>
  
  <p>The contains of <code>JsModuleForStaticImport.js</code>:</p>
  
  <pre><code>const CONST_THAT_IMPORTED_BY_DEFAULT_FROM_STATIC_JS_MODULE =
     'I am const that imported by default from status JS module.';
  export default CONST_THAT_IMPORTED_BY_DEFAULT_FROM_STATIC_JS_MODULE;
  
  export const CONST_THAT_IMPORTED_FROM_STATIC_JS_MODULE =
     'I am const that imported (no by default) from status JS module.';
  </code></pre>
  
  <p>Of course, <code>resolve.extensions</code> from webpack configuration includes both <code>.ts</code> and <code>.js</code>. </p>
  
  <pre><code>module.exports = [
    { 
  
      // ...
  
      resolve: {
        extensions: ['.ts', '.js']
    }
  ]
  </code></pre>
  
  <p>What lucks my configuration?</p>