Electron: Cannot read property 'send' of undefined
问题 I'm trying to read the files from a directory using the fs module, and display that in a div with the id displayfiles in an Electron app. I keep getting the error : Cannot read property 'send' of undefined Here is my renderer.js // This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. const electron = require('electron'); const dialog = electron.dialog; const fs = require('fs');