title: webpack cannot resolve flux/utils
body: <p>I have a OS project written in TypeScript that I am migrating toward webpack,</p>
  
  <p>However, I cannot build the project currently due to this error</p>
  
  <pre><code>ERROR in ./src/store/GigaStore.ts
  Module not found: Error: Cannot resolve module 'flux/utils' in /home/erfangc/GigaGrid/src/store
   @ ./src/store/GigaStore.ts 11:16-37
  </code></pre>
  
  <p>Project Located Here
  <a href="https://github.com/erfangc/GigaGrid/tree/webpack" rel="nofollow">https://github.com/erfangc/GigaGrid/tree/webpack</a></p>
  
  <p>Here is what I've done to get to this point:</p>
  
  <ul>
  <li>Using <code>ts-loader</code></li>
  <li>The line that imports <code>flux/utils</code> is: <code>import FluxUtils = require('flux/utils');</code></li>
  <li>I've tried alternative import syntax to no avail</li>
  <li>I've tried adding a <code>resolve.alias</code> section for <code>flux/utils: 'ABSOLUTE_PATH'</code></li>
  </ul>
  
  <p>The file <strong>definitely</strong> exists under <code>node_modules</code> and other libraries that I depend on seems to be bundled fine</p>
  
  <p>Any help is greatly appreciated ...</p>
  
  <p><code>webpack.config.js</code> reproduced here from the repo</p>
  
  <pre><code>module.exports = {
      entry: "./src/index.ts",
      output: {
          path: "./dist",
          libraryTarget: "umd",
          library: "GigaGrid",
          filename: "giga-grid.js"
      },
      resolve: {
          extensions: ['', 'webpack.js', '.web.js', 'js', '.ts', '.tsx']
      },
      module: {
          loaders: [
              {
                  test: /\.tsx?$/, loader: "ts-loader"
              },
              {
                  test: /\.css$/, loader: "style-loader!css-loader"
              },
              {
                  test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
                  loader: "url?limit=10000&amp;mimetype=application/font-woff"
              }, {
                  test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
                  loader: "url?limit=10000&amp;mimetype=application/font-woff"
              }, {
                  test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
                  loader: "url?limit=10000&amp;mimetype=application/octet-stream"
              }, {
                  test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
                  loader: "file"
              }, {
                  test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
                  loader: "url?limit=10000&amp;mimetype=image/svg+xml"
              }
          ]
      },
      externals: {
          "react": {
              commonjs: 'react',
              commonjs2: 'react',
              amd: 'react',
              root: 'React'
          },
          "react-dom": {
              commonjs: 'react-dom',
              commonjs2: 'react-dom',
              amd: 'react-dom',
              root: 'ReactDOM'
          }
      }
  };
  </code></pre>