title: Module not found Error when deployed on Heroku
body: <p>I am trying to deploy my app on Github to Heroku but getting error:</p>
  
  <blockquote>
    <p>ERROR in ./src/Index.tsx
    Module not found: Error: Can't resolve './ConfigureStore' in '/app/src'
     @ ./src/Index.tsx 9:23-50</p>
  </blockquote>
  
  <p>Seems like Typescript issue when I deploy on Heroku.</p>
  
  <p>Although, works perfect in my local and webpack generates bundles and app runs fine.
  Below is my webpack.config:</p>
  
  <pre><code>const path = require('path');
  const webpack = require('webpack');
  const merge = require('webpack-merge');
  const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
  const rootModulePath = "./src/";
  
  module.exports = {
      stats: { modules: false },
      resolve: {
          extensions: ['.js', '.jsx', '.ts', '.tsx', '.css']
      },
      entry: {
          'DIG': rootModulePath + "Index.tsx"
      },
      externals: {
          jQuery: 'jQuery'
        },
        node: {
          fs: 'empty'
        },
      plugins: [
          new webpack.ProvidePlugin({
              '$': 'jquery',
              'jQuery': 'jquery'
            }),
          new webpack.IgnorePlugin(/\.\/locale$/),
          new CheckerPlugin()        
      ],
      devtool: 'source-map',
      output: {
          path: __dirname,
          filename: './public/dig.js'
      },
      module: {
          rules: [
              { test: /\.tsx?$/, include: /src/, use: ['awesome-typescript-loader?silent=true'] },
              //{ test: /\.ts$/, include: /src/, use: 'awesome-typescript-loader?silent=true' },
              { test: /\.html$/, use: 'html-loader?minimize=false' },
              {
                  test: /\.less$/,
                  use: [{
                      loader: "style-loader" // creates style nodes from JS strings
                  }, {
                      loader: "css-loader" // translates CSS into CommonJS
                  }, {
                      loader: "less-loader" // compiles Less to CSS
                  }]
              },
              { test: /\.css$/, use: ['style-loader','css-loader'] },
              { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
              // { test: /\.js/, loader: 'imports-loader?define=&gt;false'}
          ]
      }    
  };
  </code></pre>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "digeratia",
    "version": "1.0.0",
    "description": "",
    "main": "webpack.config.js",
    "scripts": {
      "build": "webpack --mode production",
      "start": "npm run build &amp;&amp; node server.js"
    },
    "author": "Vivek Singh",
    "dependencies": {
      "@types/history": "4.6.2",
      "@types/numeral": "0.0.22",
      "@types/react": "16.1.0",
      "@types/react-bootstrap": "^0.32.6",
      "@types/react-dom": "16.0.4",
      "@types/react-hot-loader": "3.0.6",
      "@types/react-redux": "5.0.15",
      "@types/react-router": "4.0.23",
      "@types/react-router-dom": "4.2.6",
      "@types/react-router-redux": "5.0.13",
      "@types/webpack": "4.1.3",
      "@types/webpack-env": "1.13.5",
      "awesome-typescript-loader": "4.0.1",
      "axios": "^0.18.0",
      "bootstrap": "^4.0.0-alpha.6",
      "chai": "^4.1.2",
      "create-react-class": "^15.6.2",
      "datatables.net": "^1.10.16",
      "datatables.net-dt": "^1.10.16",
      "domain-task": "^3.0.3",
      "event-source-polyfill": "0.0.12",
      "express": "^4.16.2",
      "extract-text-webpack-plugin": "3.0.2",
      "file-loader": "1.1.11",
      "history": "4.7.2",
      "html-to-react": "1.3.3",
      "it": "^1.1.1",
      "json-loader": "0.5.7",
      "less": "^3.0.1",
      "less-loader": "^4.0.5",
      "lodash": "^4.17.4",
      "node-noop": "1.0.0",
      "numeral": "^2.0.6",
      "react": "^16.2.0",
      "react-bootstrap": "^0.32.1",
      "react-dom": "^16.2.0",
      "react-element-to-jsx-string": "^13.0.0",
      "react-hot-loader": "4.0.1",
      "react-image": "^1.0.1",
      "react-intl": "^2.4.0",
      "react-moment": "^0.7.0",
      "react-popper": "^0.9.2",
      "react-redux": "5.0.7",
      "react-router-dom": "4.2.2",
      "react-router-redux": "5.0.0-alpha.6",
      "redux": "3.7.2",
      "redux-thunk": "2.2.0",
      "shelljs": "^0.8.1",
      "style-loader": "^0.20.3",
      "to-string-loader": "^1.1.5",
      "typescript": "2.8.1",
      "url-loader": "1.0.1",
      "webpack": "4.4.1",
      "webpack-hot-middleware": "2.21.2",
      "webpack-merge": "4.1.2",
      "xit": "^0.2.0",
      "abort-controller": "^1.0.0",
      "babel-plugin-syntax-optional-chaining": "^7.0.0-alpha.13",
      "babel-runtime": "^6.26.0",
      "core-js": "^2.5.1",
      "css-loader": "^0.28.4",
      "css-to-string-loader": "^0.1.3",
      "react-render-html": "^0.6.0",
      "toastr": "^2.1.2",
      "webpack-cli": "^2.0.12"
    },
    "devDependencies": {
      "abort-controller": "^1.0.0",
      "babel-plugin-syntax-optional-chaining": "^7.0.0-alpha.13",
      "babel-runtime": "^6.26.0",
      "core-js": "^2.5.1",
      "css-loader": "^0.28.4",
      "css-to-string-loader": "^0.1.3",
      "react-render-html": "^0.6.0",
      "toastr": "^2.1.2",
      "webpack-cli": "^2.0.12"
    }
  }
  </code></pre>
  
  <p>The github code url is <a href="https://github.com/singhvivek2503/DigeratiGlobalReact" rel="noreferrer">here</a></p>
  
  <p>Please help as am stuck on this issue since long time.</p>