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

Cannot require "screen" module before app is ready #29

Open
tong opened this issue Apr 10, 2017 · 3 comments
Open

Cannot require "screen" module before app is ready #29

tong opened this issue Apr 10, 2017 · 3 comments
Assignees
Labels

Comments

@tong
Copy link
Owner

tong commented Apr 10, 2017

Using electron.Screen throws following error at runtime:
Error: Cannot require "screen" module before app is ready

But how can we prevent loading the screen module before the App.ready event ?

@tong tong added the bug label Apr 10, 2017
@fponticelli
Copy link
Collaborator

I guess we have to break the pattern and add some __init__ magic?

@tong
Copy link
Owner Author

tong commented Nov 23, 2017

See: electron/electron#5897

@tong tong closed this as completed in f56c108 Nov 25, 2017
@tong tong reopened this Jul 20, 2018
@tong
Copy link
Owner Author

tong commented Jul 20, 2018

Patched by adding @:native("require(\"electron\").screen") but still here

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

No branches or pull requests

2 participants