title: Module not found: Can't resolve 'child_process'
body: <p>while using reactjs I am getting this.webpack error incounter while npm start. </p>
  
  <pre><code>    `./~/csvtojson/libs/core/workerMgr.js
      Module not found: Can't resolve 'child_process' in '/var/www/html/ReactLogin/node_modules/csvtojson/libs/core'`
      File : CsvRead.jsx
  
      import React from 'react';
      import ReactDOM from 'react-dom';
  
      var objects;
  
      var CsvRead = React.createClass({
          readFile:function(){
              var file = this.refs.file.files[0];
              var reader = new FileReader();
              reader.onload = function(evt){
                   var resultText = evt.target.result;
                   objects = this.csvToJson(resultText);
                   console.log(objects);
              }.bind(this);
              var newFile = file.slice(0,5000);
              reader.readAsText(newFile); 
          },
          csvToJson:function(csvString){
              var Converter = require("csvtojson").Converter;
              var converter = new Converter({});
              converter.fromString(csvString, function(err,result){
                 //When i console log the result it is working but when i return The result:
                 // i am getting a undefined error
                 //console.log(result);
                 return result;
              });
          },
          render:function(){
          console.log('i am here');
            return (
               &lt;input type="file" ref="file" onChange={this.readFile} /&gt; 
            );
          }
      });
  </code></pre>
  
  <p>File : GoogleChart.jsx : This file contains the import statement for including CsvRead.jsx but not working while including this file.</p>
  
  <pre><code>    import React, { Component } from 'react'
      import ReactDOM from 'react-dom';
      import { connect } from 'react-redux'
      import { createHashHistory } from 'history';
      import { Chart } from 'react-google-charts';
      import { CsvRead } from '../dynamic/CsvRead.jsx'
  
      const customHistory = createHashHistory();
  
      class GoogleChart extends Component {
          constructor(props) {
        super(props);
          this.state = {
            options: {
              title: 'Users Hours comparison',
              hAxis: { title: 'User'},
              vAxis: { title: 'Hours'},
              legend: 'none',
              axisTitlesPosition: 'out',
              'isStacked': true,
              colors: ['#0598d8', '#f97263'],
            },
  
            data :[
              ['User', 'workingHours', 'ExceptedWorkingHours'],
              ['user1', 500, 400],
              ['user2', 300, 200],
              ['user3', 1500, 650],
              ['user4', 1200, 470],
              ['user5', 1000, 700],
              ['user6', 500, 400],
              ['user7', 1300, 500],
              ['user8', 176, 55],
              ['user9', 310, 240],
              ['user10', 500, 400]
          ]
          };
        }
  
        render() {
          return (
            &lt;CsvRead /&gt;
            &lt;Chart
              chartType="ColumnChart"
              data = {this.state.data}
              options={this.state.options}
              graph_id="ColumnChart"
              width="100%"
              height="400px"
              legend_toggle
            /&gt;
          );
        }
      }
  
  
      function select(state) {
          return {
              users: state.users
          }
      }
  
      export default connect(select)(GoogleChart);
  </code></pre>
  
  <p>Anyone can help me on this.might not getting correct issue to resolve this problem.
  How to solve this issue?</p>