Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Start Failure #35

Open
arman-99 opened this issue Mar 3, 2023 · 1 comment
Open

NPM Start Failure #35

arman-99 opened this issue Mar 3, 2023 · 1 comment

Comments

@arman-99
Copy link

arman-99 commented Mar 3, 2023

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
Copy link

Yep same error on my M3 Pro Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants