use fs-extra at electron render process
the same with fs-extra
import fs from 'electron-fs-extra';
async readFile(filePath) {
return await fs.readFile(filePath)
}
readFile(filePath);
must install fs-extra first at project
$ yarn add fs-extra
# or
$ npm install fs-extra -S