Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It won't run #138

Open
Esauromano opened this issue Jul 10, 2017 · 2 comments
Open

It won't run #138

Esauromano opened this issue Jul 10, 2017 · 2 comments

Comments

@Esauromano
Copy link

npm start trows

Uncaught Exception:
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at loadApplicationPackage (/Users/arete/Documents/photon/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app/main.js:257:23)
at Object. (/Users/arete/Documents/photon/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app/main.js:289:5)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)

@holywyvern
Copy link

Check pull request #125

@stevanmilic
Copy link

stevanmilic commented Oct 6, 2017

I had the same problem, first three lines of dist/template-app/app.js should be changed to:

// const {app, BrowserWindow} = require('electron')
var app = require('app');
var BrowserWindow = require('browser-window'); 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants