keymetrics / doc-pm2

DEPRECATED
28 stars 66 forks source link

Pm2 api error Can't resolve 'fsevents' #295

Closed Geowan closed 5 years ago

Geowan commented 5 years ago

Am trying to add the api to the app but keep on getting an error

  Module not found: Error: Can't resolve 'fsevents'  in node_modules/chokidar/lib

In my package.json i have added

     "dependencies": {
              "pm2": "^3.5.0",
        },

IN my webpack config i have added

   node: {
       fs: "empty",
       child_process: 'empty',
        fsevents: 'empty'
     }

This occurs after adding pm2 as a dependency.