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

Error on template app #162

Open
feavilan04 opened this issue Apr 16, 2021 · 3 comments
Open

Error on template app #162

feavilan04 opened this issue Apr 16, 2021 · 3 comments

Comments

@feavilan04
Copy link

We are having an error when running the template app. On menu.js in line 2 console raises the following error "Uncaught TypeError: Cannot destructure property 'Menu' of 'remote' as it is undefined."

@1211454975
Copy link

Do you resolve it?

@0xtrzy
Copy link

0xtrzy commented Dec 17, 2021

npm start

[email protected] start
electron .

App threw an error during load
Error: Cannot find module 'app'
Require stack:

  • /electron/photon-0.1.2-dist/template-app/app.js
  • /electron/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (/electron/photon-0.1.2-dist/template-app/app.js:1:11)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    Error: Cannot find module 'app'
    Require stack:
  • /electron/photon-0.1.2-dist/template-app/app.js
  • /electron/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (/electron/photon-0.1.2-dist/template-app/app.js:1:11)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)

@0xtrzy
Copy link

0xtrzy commented Dec 17, 2021

still trouble

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