question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade Electron version in existing project

See original GitHub issue

I would like to see documentation on how to best upgrade the electron version in a pre-existing project built with this plugin. Currently running electron ^3.1.9 and feeling like a dinosaur.

I considered re-adding electron-builder and forcing the initial prompt so I can pick ^6..., then manually fixing any changed files such as background.js.

If there is an existing issue with this info please just let me know! Hoping to get back to a more modern version of electron.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Jan 23, 2020

Have you tried rm -ring node_modules and then running yarn? I haven’t seen that specific error, but I have seen similar issues with node_gyp. The second error is because you need to manually enable nodeintegration on electron 5.0+ (not sure on the exact version), I forgot to mention that. To do this, add this to the config argument of new BrowserWindow:

webPreferences: {
  nodeIntegration: true
}
0reactions
eschirtzcommented, Jan 23, 2020

I hear ya,

Definitely agree that none of those things should matter. Just not sure what ended up doing the trick in the end.

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade electron to latest version? - Stack Overflow
To upgrade the node library to the latest version and for electron in this instance you should use: npm install electron@latest.
Read more >
Update to latest Electron version - Christian Engvall
1. Updating the version used in package.json. Start a terminal and run this command: npm install electron@latest.
Read more >
Electron Versioning
To update an existing project to use the latest stable version: npm; Yarn. npm install --save-dev electron@latest.
Read more >
Upgrading Electron from 7 to 12 - DEV Community ‍ ‍
Tagged with electron, javascript. ... I upgraded Electron from 7 to 12 in this project, and here are some ... npm update node-abi...
Read more >
electron - npm
Latest version: 22.0.0, last published: a month ago. Start using electron in your project by running `npm i electron`.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found