Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Fresh install #104

Closed
nguyenDalex opened this issue Jan 6, 2016 · 7 comments
Closed

Fresh install #104

nguyenDalex opened this issue Jan 6, 2016 · 7 comments

Comments

@nguyenDalex
Copy link

App threw an error when running [TypeError: Cannot read property 'getAppPath' of undefined]

I get this error.

@szwacz
Copy link
Owner

szwacz commented Jan 9, 2016

Hmm, too little data to say something. Which electron version had been used? What operating system?

@szwacz szwacz closed this as completed Jan 22, 2016
@dmr
Copy link

dmr commented Feb 5, 2016

Same problem here: I just did npm install, nothing special.
npm start throws that error.

electron 0.4.1 on OSX 10.11.3

@szwacz
Copy link
Owner

szwacz commented Feb 6, 2016

electron 0.4.1? Is it mistype or really you ment that? The latest electron is 0.36.7

@dmr
Copy link

dmr commented Feb 6, 2016

Oh, you are right. 0.36.7.
I was confused by a npm package called "electron" with is something different ^^.

npm -v
3.7.1

node -v
v5.5.0

Still the same issue: [TypeError: Cannot read property 'getAppPath' of undefined]

@black-snow
Copy link
Contributor

getAppPath() is a method of electron's app object. There's two occurences in the boilerplate: https://github.com/szwacz/electron-boilerplate/search?utf8=%E2%9C%93&q=getAppPath

@dmr
Copy link

dmr commented Feb 6, 2016

Sorry for the noise here, the problem has to do with the package electron that I installed in another project: --> npm install electron-prebuilt

"electron" is another program which has nothing to do with all of this!

If the package electron is installed anywhere it will cause a problem which leads to app not being defined.

electron/electron#3708

@szwacz
Copy link
Owner

szwacz commented Feb 6, 2016

Ha! Never would anticipate that. Thanks for clearing this out!

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

No branches or pull requests

4 participants