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 am trying to use this package with electron-vue template but getting following error on Windows 10 machine
D:\Electron\Electron-vue-startup-template\node_modules\electron-download-manager\index.js:8 Uncaught TypeError: Cannot read property 'getPath' of undefined
at Object.<anonymous> (D:\Electron\Electron-vue-startup-template\node_modules\electron-download-manager\index.js:8)
at Object.<anonymous> (D:\Electron\Electron-vue-startup-template\node_modules\electron-download-manager\index.js:267)
at Module._compile (internal/modules/cjs/loader.js:968)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986)
at Module.load (internal/modules/cjs/loader.js:816)
at Module._load (internal/modules/cjs/loader.js:728)
at Module._load (electron/js2c/asar.js:717)
at Function.Module._load (electron/js2c/asar.js:717)
at Module.require (internal/modules/cjs/loader.js:853)
at require (internal/modules/cjs/helpers.js:74)
The same error happens for me, And i am calling DownloadManager.register() in the main process.
When i checked the code i noticed that you are using require('electron').app which i think it isn't available in older version of electron (v6 in my case), it would be good to replace that with require('electron').remote.app which is available in every version of electron
i am trying to use this package with electron-vue template but getting following error on Windows 10 machine
here is my package.json
The text was updated successfully, but these errors were encountered: