How to use Native Node Modules on a React, ES6, Electron App?
问题 I have a React, Electron app that I wish to be able to access native node modules from the ES6 compiled (using Babel and Webpack). For example, when I try to require the "fs" node module to access the filesystem I get the following error. ERROR in ./src/app.js Module not found: Error: Cannot resolve module 'fs' in C:\Users\Propietario-1\Documents\GitHub\AMPLI @ ./src/app.js 1:358-371 But when I required this from a "none compiled" js file it works. I can access the "fs" module. Any help is