I do a project on electron js, I encountered such a problem. I have main.js the main process itself and the html page that main.js loads

new BrowseWindow().loadFile('index.html'); 

The dock says that you can use everything that BrowserWindow can do through the render process via remote. But when I connect the script with the remote to the html page, it does not work. In general, nodejs modules do not work. What is the problem?

    0