BishopFox / unredacter

Never ever ever use pixelation as a redaction technique
GNU General Public License v3.0
7.75k stars 717 forks source link

NPM Start Failure #35

Open arman-99 opened 1 year ago

arman-99 commented 1 year ago

I am trying to run this software on my Apple silicon Mac, and cannot get it to run. This error was already posted a month ago, but since there was no fix I decided to post it again.

This is the error I am getting when trying to run npm start:

src/main.ts:20:7 - error TS2322: Type '{ preload: string; nodeIntegration: false; worldSafeExecuteJavaScript: true; contextIsolation: true; }' is not assignable to type 'WebPreferences'.
  Object literal may only specify known properties, and 'worldSafeExecuteJavaScript' does not exist in type 'WebPreferences'.

20       worldSafeExecuteJavaScript: true,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/electron/electron.d.ts:13642:5
    13642     webPreferences?: WebPreferences;
              ~~~~~~~~~~~~~~
    The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'

src/main.ts:177:7 - error TS2322: Type '{ sandbox: true; webSecurity: true; contextIsolation: true; webviewTag: false; enableRemoteModule: false; allowRunningInsecureContent: false; nodeIntegration: false; nodeIntegrationInWorker: false; nodeIntegrationInSubFrames: false; nativeWindowOpen: false; safeDialogs: true; }' is not assignable to type 'WebPreferences'.
  Object literal may only specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.

177       enableRemoteModule: false,
          ~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/electron/electron.d.ts:13642:5
    13642     webPreferences?: WebPreferences;
              ~~~~~~~~~~~~~~
    The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'

Found 2 errors.

I'd appreciate any help. Thanks

LukasMFR commented 5 months ago

Yep same error on my M3 Pro Mac.