-
Notifications
You must be signed in to change notification settings - Fork 800
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels