Skip to content

NPM Start Failure #35

@arman-99

Description

@arman-99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions