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

Incorrect by the current version #11

Open
DBirth opened this issue Sep 23, 2017 · 2 comments
Open

Incorrect by the current version #11

DBirth opened this issue Sep 23, 2017 · 2 comments

Comments

@DBirth
Copy link

DBirth commented Sep 23, 2017

const dialog = remote.require('dialog');

I had to use:
const { dialog } = require('electron').remote;

Or in your case:
const dialog = remote.dialog;

@edchepen
Copy link

Unfortunately it still does not work for me. I cloned again and made changes (on this issue and others) and still same results. . Would be nice if Adam would check-in a corrected known to work version of the code.

@meyerla
Copy link

meyerla commented Nov 30, 2017

This combination worked for me when others wouldn't.

const remote = require('electron').remote; // fixed incorrect usage from book
const dialog = remote.dialog;

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