leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
548 stars 41 forks source link

Cannot read property 'getPath' of undefined #9

Closed joseshiru closed 7 years ago

joseshiru commented 7 years ago

Hi,

First I have to say thanks for the plugin.

I'm creating an app by using your example. I need to store some files in \AppData\Local\ by using the app.getPath() function from electron.

However, after running the code, the file is created but the browser shows an error saying: "An unexpected error has occurred." and the console says: Cannot read property 'getPath' of undefined

Do I'm doing something wrong?

Thanks

leo commented 7 years ago

The same problem as here and here... 😊

joseshiru commented 7 years ago

God bless you 😊

From: Leo Lamprechtmailto:notifications@github.com Sent: Tuesday, 10 October 2017 1:38 PM To: leo/electron-nextmailto:electron-next@noreply.github.com Cc: Jose Zuniga Marinmailto:jose_zuma@hotmail.com; Authormailto:author@noreply.github.com Subject: Re: [leo/electron-next] Cannot read property 'getPath' of undefined (#9)

Closed #9https://github.com/leo/electron-next/issues/9.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/leo/electron-next/issues/9#event-1285872058, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGRRnRmTDDV5RHIFx_mlbh8zEhuVA4MMks5sq1c9gaJpZM4PzyRP.