title: Entry module not found
body: <blockquote>
    <p>ERROR in   Error: Child compilation failed: <br>
      Entry module not found: Error: Can't resolve '/Users/MarkPierre/Desktop/es6-project-2019/src/index.html' in '/Users/MarkPierre/Desktop/es6-project-2019': <br>
      Error: Can't resolve '/Users/MarkPierre/Desktop/es6-project-2019/src/index.html' in '/Users/MarkPierre/Desktop/es6-project-2019'</p>
  </blockquote>
  
  <p>When I run the command <code>npm run start</code>, I get the error message mentioned above. 
  I've checked the path and it's there. Any ideas?</p>
  
  <p>Seems like the issue occurs with <code>template: './starter/src/index.html'</code>. I've removed the <code>starter</code>, but still the same issue. Very frustrating as this is the final part of the config :-(</p>
  
  <h3>babelrc file</h3>
  
  <pre class="lang-js prettyprint-override"><code>{
      "presets": [
          ["@babel/preset-env", {
              "targets": {
                  "browsers": [
                      "last 5 versions",
                      "ie &gt;= 8"
                  ]
              }
          }]
      ]
  } 
  </code></pre>
  
  <h3>package.json</h3>
  
  <pre class="lang-js prettyprint-override"><code>{
      "name": "forkify",
      "version": "1.0.0",
      "description": "forkify project",
      "main": "index.js",
      "scripts": {
          "dev": "webpack: --mode development",
          "build": "webpack --mode production",
          "start": "webpack-dev-server --mode development --open"
      },
      "author": "",
      "license": "ISC",
      "devDependencies": {
          "@babel/core": "^7.2.2",
          "@babel/preset-env": "^7.2.3",
          "babel-loader": "^8.0.5",
          "html-webpack-plugin": "^3.2.0",
          "webpack-dev-server": "^3.1.14"
      },
      "dependencies": {
          "@babel/polyfill": "^7.2.5"
      }
  }
  </code></pre>
  
  <h3>webpack</h3>
  
  <pre class="lang-js prettyprint-override"><code>const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: ['@babel/polyfill', './starter/src/js/index.js'],
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: 'js/bundle.js',
      },
      devServer: {
          contentBase: './dist'
      },
      plugins: [
          new HtmlWebpackPlugin({
              filename: 'index.html',
              template: './src/index.html'
          })
      ],
      module: {
          rules: [{
              test: /\.js$/,
              exclude: /node_modules/,
              use: {
                  loader: 'babel-loader'
              }
          }]
      }
  
  };
  </code></pre>