title: How to fix "TypeError: fsevents is not a constructor" react error
body: <p>While staring React app using npm start this error occurred...</p>
  
  <p>I tried below things:</p>
  
  <ol>
  <li><p>remove node_module package and reinstall</p></li>
  <li><p>use yarn instead npm</p></li>
  </ol>
  
  <p>3.update fsevent library using npm</p>
  
  <p>still getting this error</p>
  
  <p>Note: If we create react app fresh/new yarn start will work, but we close the terminal and restart using same thing  below error occurred</p>
  
  <pre><code>/Users/nannam/test-app-2/node_modules/chokidar/lib/fsevents-handler.js:28
  </code></pre>
  
  <p>return (new fsevents(path)).on('fsevent', callback).start();
            ^</p>
  
  <blockquote>
    <p>TypeError: fsevents is not a constructor
        at createFSEventsInstance (/Users/nannam/test-app-2/node_modules/chokidar/lib/fsevents-handler.js:28:11)
        at setFSEventsListener (/Users/nannam/test-app-2/node_modules/chokidar/lib/fsevents-handler.js:82:16)
        at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/nannam/test-app-2/node_modules/chokidar/lib/fsevents-handler.js:252:16)
        at FSWatcher. (/Users/nannam/test-app-2/node_modules/chokidar/lib/fsevents-handler.js:386:25)
        at LOOP (fs.js:1565:14)
        at process._tickCallback (internal/process/next_tick.js:61:11) error Command failed with exit code 1. info Visit
    <a href="https://yarnpkg.com/en/docs/cli/run" rel="noreferrer">https://yarnpkg.com/en/docs/cli/run</a> for documentation about this
    command.</p>
  </blockquote>