I've created an electron app based on this link (but using recent modules).
I want to create a simple desktop app, I need to open some local files. I know that there is the node fs API for this, but I'm have problems with referencing it correctly.
Here is what I tried:
import fs = require('fs');
You need to set
target: 'electron-renderer' in your Webpack config, if you still have issues after that take a look at https://github.com/chentsulin/electron-react-boilerplate