You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that hot module reloading (HMR) doesn't work all the time anymore. HMR used to work fine and would correctly reload the app whether changes were made to the renderer thread or the main thread. Somewhere along the lines, HMR broke. I've managed to narrow down the culprit to one of these commits.
My understanding is that this issue with HMR likely stems from the fact that we are using this hacky workaround introduced in 2e4d3e0:
As a recap, in #100 we upgraded Electron from version 4.1.1 to 7.3.2, due to vulnerabilities found in version 4. The twitch-electron-auth-provider package works with Electron as a peer dependency up to versions < 9.0.0, so we could have installed any Electron up til version 8. So why did we settle on 7.3.2? As evident in the commits, initially we had upgraded to Electron to 8.4.1, but it caused the console to be spammed with DevTools failed to parse SourceMap warning messages. At the time of writing, it seems like there is still no fix available for this, and in addition, this issue also plagues later versions as well including version 9 and version 10.
And so, we're stuck with version 7 of Electron. But version 7 has this very strange bug with Windows 10 dark mode, where the ready event doesn't fire in dev mode (yes, really) and thus not opening the app. So we use the hacky workaround as initially described here to get around opening the app in dev mode.
Which leads me to repeat that I believe this workaround is the cause of HMR not working. I'm still not sure what the best path forward in regards to this.
In conclusion: I hate Electron.
The text was updated successfully, but these errors were encountered:
I noticed that hot module reloading (HMR) doesn't work all the time anymore. HMR used to work fine and would correctly reload the app whether changes were made to the renderer thread or the main thread. Somewhere along the lines, HMR broke. I've managed to narrow down the culprit to one of these commits.
My understanding is that this issue with HMR likely stems from the fact that we are using this hacky workaround introduced in 2e4d3e0:
As a recap, in #100 we upgraded Electron from version 4.1.1 to 7.3.2, due to vulnerabilities found in version 4. The
twitch-electron-auth-provider
package works with Electron as a peer dependency up to versions< 9.0.0
, so we could have installed any Electron up til version 8. So why did we settle on 7.3.2? As evident in the commits, initially we had upgraded to Electron to 8.4.1, but it caused the console to be spammed with DevTools failed to parse SourceMap warning messages. At the time of writing, it seems like there is still no fix available for this, and in addition, this issue also plagues later versions as well including version 9 and version 10.And so, we're stuck with version 7 of Electron. But version 7 has this very strange bug with Windows 10 dark mode, where the ready event doesn't fire in dev mode (yes, really) and thus not opening the app. So we use the hacky workaround as initially described here to get around opening the app in dev mode.
Which leads me to repeat that I believe this workaround is the cause of HMR not working. I'm still not sure what the best path forward in regards to this.
In conclusion: I hate Electron.
The text was updated successfully, but these errors were encountered: