sindresorhus/electron-context-menu

Not working in Electron 14.0.0

Nashorn opened this issue · 1 comments

requiring it throws:

VM640 index.js:11 Uncaught TypeError: Cannot read properties of undefined (reading 'isPackaged')
    at Object.<anonymous> (VM640 index.js:11)
    at Object.<anonymous> (VM640 index.js:13)
    at Module._compile (VM554 loader.js:1083)
    at Object.Module._extensions..js (VM554 loader.js:1113)
    at Module.load (VM554 loader.js:940)
    at Module._load (VM554 loader.js:781)
    at Function.f._load (VM581 asar_bundle.js:5)
    at Function.o._load (VM586 renderer_init.js:29)
    at Module.require (VM554 loader.js:964)
    at require (VM561 helpers.js:88)

From the readme:

This package can only be used in the main process.