while compiling node js project with gulp commmand below error occurs.
In public/js/app/app.node.js:
var fs = require('fs');
^
TypeError: require is not a function at Object.module.exports.map../file
I tried to implement react flux api calls with current project.
UPDATE:
this error has been removed after adding
new dwebpack.DefinePlugin({ "global.GENTLY": false })
but currently below error occuring.
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/types/mime.types'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Mime.load