mac-screen-capture-permissions icon indicating copy to clipboard operation
mac-screen-capture-permissions copied to clipboard

hasScreenCapturePermission() gives error with Webpack

Open sameenahmad opened this issue 4 years ago • 1 comments

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:

image

MacOS Version - 10.15.6 Package Version -1.1.0

sameenahmad avatar Sep 10 '20 16:09 sameenahmad

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

evansben87 avatar Sep 30 '20 09:09 evansben87