mac-screen-capture-permissions
mac-screen-capture-permissions copied to clipboard
hasScreenCapturePermission() gives error with Webpack
I'm trying to develop an Electron Based screen recording Application. I'm using Electron Forge with webpack and typescript plugins. While all other methods seem to work as mentioned in the example, hasScreenCapturePermission() gives the following Error:
MacOS Version - 10.15.6 Package Version -1.1.0
I used typescript to code bug get the error while built application Implement Electron app with Angular, Typescript, built project and got error import "AllElectron" ERROR in node_modules/electron-util/index.d.ts:4:9 - error TS2305: Module '"electron"' has no exported member 'AllElectron'.
4 import {AllElectron, Remote, BrowserWindow, Size, Rectangle, Session, MenuItemConstructorOptions, MenuItem} from 'electron';
Please help to check this issue