-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Electron 5 upgrade #175
Comments
Specifically, just updating to Electron 5 I get this error:
Updating
Makes me feel like some polyfills are missing, but the angular-electron project works fine, and has just one line:
Probably better as was before 😓 Updated to Electron version |
Looks like upgrading just
So is may be an independent hurdle we'll need to overcome (not just Electron 5) 😅 |
Updating just
I'd rather not mess with adding the So we'll wait for Angular 8 to come out (sometime within this/next week 🎉 ) |
Now that I've updated as much as I could with #176 -- I tried Electron
I'll do some digging, but if anyone has come across this, please share your thoughts 👍 |
Problem solved:
Just needed this:
|
Closed with #176 |
I've tried upgrading to Electron 5 but had some trouble. The Chromium window loads (with the loading animation) but the console shows some error (something like "Cannot load ____ of undefined" with stack trace showing something about zone and references no code I have written).
Things are further mildly complicated: Electron 5 uses Node 12 (which you can successfully update) but that requires to rebuild node-sass (which finally has binding for version 12) but is a bit of a pain (took about several attempts and about 5 minutes to get to build). We don't need to update to Node 12 to try out Electron 5, but I tried just in case and it didn't help with that error.
I tried updating all the packages (including zone.js and ts-node) but that didn't help with Electron 5 error. It feels like there is some API change in Electron, but it's not listed in the breaking changes log or releases.
The only change that broke the compilation was this (main.ts line 377):
It expected 1 or 2 arguments, not 3, which was as simple fix:
I'm writing all this to document and to help with upgrading eventually. The base repository I based Video Hub App was angular-electron and it updated to Angular 5 with no problem:
maximegris/angular-electron#336 😅
So some import or method or something I'm doing is breaking Electron 5 🤷♂
The text was updated successfully, but these errors were encountered: