frankhale / electron-with-express

A simple app that demonstrates spawning an Express app from Electron
MIT License
643 stars 147 forks source link

require('electron').remote.app.getAppPath() no longer working #35

Closed HaithamOumerzoug closed 2 years ago

HaithamOumerzoug commented 2 years ago

app = require("electron").remote.app, app.getAppPath() not working I got this error : VM76 renderer_init.js:81 TypeError: Cannot read properties of undefined (reading 'app')

dimaslanjaka commented 2 years ago

use https://www.npmjs.com/package/@electron/remote

frankhale commented 2 years ago

Added @electron/remote to fix this