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

no fount module app #158

Open
zerotrzy opened this issue Sep 19, 2020 · 2 comments
Open

no fount module app #158

zerotrzy opened this issue Sep 19, 2020 · 2 comments

Comments

@zerotrzy
Copy link

Error: Cannot find module 'app'
Require stack:
- /photon-0.1.2-dist/template-app/app.js
- /photon-0.1.2-dist/template-app/node_modules/electron/dist/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:961:15)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:257:919)
    at Module._load (internal/modules/cjs/loader.js:844:27)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:1023:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/mnt/i/home/electr/photon-0.1.2-dist/template-app/app.js:1:11)
    at Module._compile (internal/modules/cjs/loader.js:1145:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1166:10)
    at Module.load (internal/modules/cjs/loader.js:981:32)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot 

if I change to require('electron').app it still not working

yarn ok
yarn start have this trouble.

@longmaba
Copy link

longmaba commented Oct 4, 2020

const { app, BrowserWindow } = require("electron");

Use this instead

@alexchandel
Copy link

Please close this issue, repo is dead, see #142

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