title: TS2307: Cannot find module './images/logo.png'
body: <p>I'm trying to import a local png image into my ts webpack project, and I get the following error.</p>
  
  <pre><code>TS2307: Cannot find module './images/logo.png'.
  </code></pre>
  
  <p>All my other modules are importing just fine, ie; my css, svg and ts files. It only seems to happen with png. </p>
  
  <p>My webpack.config.js modules section </p>
  
  <pre><code>module: {
      rules: [{
        test: /\.ts$/,
        use:['ts-loader']
      },{
        test: /\.css$/,
        use: ['style-loader', 'css-loader']
      },{
        test: /\.(woff|woff2|eot|ttf|svg)$/,
        use: ['url-loader?limit=100000']
      },{
        test: /\.png$/,
        use: ['file-loader']
      }]
    }
  </code></pre>
  
  <p>My tsconfig.json</p>
  
  <pre><code>{
    "compilerOptions": {
      "outDir": "./dist/",
      "sourceMap": true,
      "module": "CommonJS",
      "target": "ES5",
      "lib": ["DOM", "ES2015.Promise", "ES5"],
      "allowJs": true,
      "alwaysStrict": true
    }
  }
  </code></pre>
  
  <p>My import statement </p>
  
  <pre><code>import Logo from './images/logo.png';
  </code></pre>
  
  <p>My file structure </p>
  
  <pre><code>root
  -src
  --css
  --images
  ---logo.png
  --index.ts
  --templates.ts
  -package.json
  -tsconfig.json
  -webpack.config.js
  </code></pre>