Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

on Mac (Catalina) with latest @angular.cli and electron all references in electronService are null #43

Closed
coopernyc opened this issue Nov 17, 2019 · 1 comment

Comments

@coopernyc
Copy link

Screen Shot 2019-11-16 at 10 56 34 PM

Screen Shot 2019-11-16 at 11 00 04 PM

Screen Shot 2019-11-16 at 11 01 33 PM

Screen Shot 2019-11-16 at 11 03 57 PM

Screen Shot 2019-11-16 at 11 05 12 PM

@coopernyc
Copy link
Author

Sorry, I fugured it out, in Electron 6+ you have to force nodeIntegration: true while creating BrowserWindow... it works now as expected
win = new BrowserWindow({
width: 800,
height: 600,
show: true,
webPreferences: {
nodeIntegration: true
}

});

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

1 participant