title: Reactjs "SyntaxError: Unexpected token <" while npm start
body: <p>The react app that I have is an old code and I am trying to build my react app with the following command to complete the setup of the project.</p>
  
  <pre><code>npm run-script build
  </code></pre>
  
  <p>Here is the configuration in package.json</p>
  
  <pre><code>"webpack": "^3.12.0",
  "webpack-cli": "^3.3.0",
  "webpack-dev-server": "^2.11.5"
  "babel-core": "^5.8.20",
  "babel-loader": "^5.3.2",
  </code></pre>
  
  <p>and my node and npm versions are</p>
  
  <pre><code>node 10.15.3 
  npm v6.4.1
  </code></pre>
  
  <p>my routes.js looks like</p>
  
  <pre><code>module.exports = (
    &lt;Router history={history}&gt;
      &lt;Route path='list' component={Roadshows} /&gt;
    &lt;/Router&gt;
  )
  </code></pre>
  
  <p>I tried installing different versions of webpack, webpack-dev-server and babel-loader.</p>
  
  <pre><code>/home/local/TAG/vigneshs/project/react/roadshow/roadshow_frontend/routes.js:62
    &lt;Router history={history}&gt;
    ^
  
  SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>When I try to start my server using</p>
  
  <pre><code>npm start
  </code></pre>
  
  <p>I getting the same error.</p>
  
  <p>can anyone please do guide to complete the setup of the project. Am I missing anything?</p>