Uncaught TypeError: Cannot destructure property 'Menu' of 'require(...).remote' as it is undefined.
jaytaph opened this issue · comments
When I create a new project based on the sidereel project, I get an issue:
Uncaught TypeError: Cannot destructure property 'Menu' of 'require(...).remote' as it is undefined
in dropdown.js:7
It seems the issue is the fact that it uses const { Menu } = require('electron').remote;
.
My electronjs knowledge is about 24 hours old, so i most likely do something wrong, like trying to require electron-photon inside the main process. I actually do a console.log(process) just before loading, and see that the process.type actually is renderer
so it seems fine. When i remove the ".remote" part from dropdown.js, it actually works fine.
I'm not sure what is wrong here.
It turns out this happens on electron 10.x@beta. Moving back to 9.1.2 makes it work again