title: Error while running npm run dev command in react application
body: <p>I am new to React.js and i am trying to setup simple react application locally using webpack.
  while running the npm run dev command i m getting below error.</p>
  <p>Error getting in command prompt after running <strong>npm run dev</strong></p>
  <pre><code>F:\ReactApp\react-webpack&gt;npm run dev
  
  
  &gt; react-webpack@1.0.0 dev F:\ReactApp\react-webpack
  &gt; webpack -wd
  
  error: option '-d, --devtool &lt;value&gt;' argument missing
  
  npm ERR! code ELIFECCLE
  
  npm ERR! errno 1
  
  npm ERR! react-webpack@1.0.0 dev: `webpack -wd`
  
  npm ERR! Exit status 1
  
  npm ERR!
  
  npm ERR! Failed at the react-webpack@1.0.0 dev script.
  
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  
  npm ERR!     C:\Users\nilesh\AppData\Roaming\npm-cache\_logs\2020-10-30T08_33_31
  _702Z-debug.log
  </code></pre>
  <p>Below is code in package.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;react-webpack&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;webpack.config.js&quot;,
    &quot;dependencies&quot;: {
      &quot;babel-loader&quot;: &quot;^6.4.1&quot;,
      &quot;babel-preset-es2015&quot;: &quot;^6.24.1&quot;,
      &quot;babel-preset-react&quot;: &quot;^6.24.1&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;webpack&quot;: &quot;^5.3.2&quot;,
      &quot;webpack-cli&quot;: &quot;^4.1.0&quot;
    },
    &quot;devDependencies&quot;: {},
    &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;webpack -wd&quot;
    },
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;
  }
  </code></pre>
  <p>Below is code for the webpack.config.js file</p>
  <pre><code>const path = require('path');
  
  module.exports = {
      entry : './js/app.js',
      output : {
          path: path.join(__dirname,'public'),
          filename: 'bundle.js'
  
      },
      module :{
  
          loaders: [
               {
                   test: /\.js$/,
                   exclude: /node_modules/,
                   loader:'babel-loader'
               }
          ]
      }
  };
  
  </code></pre>
  <p>Code in app.js file</p>
  <pre><code>
  import React from &quot;react&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  
  class HelloMessage extends React.Component {
    render() {
      return (
        &lt;div&gt;
          Hello {this.props.name}
        &lt;/div&gt;
      );
    }
  }
  ReactDOM.render(
    &lt;HelloMessage name=&quot;Taylor&quot; /&gt;,
    document.getElementById('root')
  );
     
  </code></pre>
  <p>Here my .babelrc file</p>
  <pre><code>{
      &quot;presets&quot;:[
          &quot;react&quot;,
          &quot;es2015&quot;
      ]
  }
  </code></pre>
  <p>I have already install latest version of node.js</p>
  <p>Thanks in Advance</p>
  <p>Nilesh Kulkarni</p>