Open radhewro opened 8 years ago
Seems like you are using Electron v1.x and template app uses older version of Electron APIs.
Thank you.
Ah, one more question: do you have any idea how to fix/workaround it?
So far, you have to re-write the code of Photon so it complies with the new syntax of Electron 1.x
You could also use older version of Electron, but I would advise against that.
Oh, sad...thank you all!
It also happend to me!
Spent more than an hour to finding out the cause. Was actually frustrating. This seems like a common issue. Can the author put up a guide on re-writing the Photon to work with newer stable versions?
The error is solvent with replace the next section in file app.js
var app = require('app'); // Module to control application life. var BrowserWindow = require('browser-window'); // Module to create native browser window.
with
const {app, BrowserWindow} = require('electron');
I've debuged in vs.code too, the first require("app") throws that exception.
Electron-prebuild is installed via npm/nvm.
What I'm doing wrong?